summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/g_rtext.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/g_rtext.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_rtext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_rtext.c b/apps/plugins/pdbox/PDa/src/g_rtext.c
index 9c8711d01c..c2629db055 100644
--- a/apps/plugins/pdbox/PDa/src/g_rtext.c
+++ b/apps/plugins/pdbox/PDa/src/g_rtext.c
@@ -162,7 +162,9 @@ extern int sys_oldtclversion;
162static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp, 162static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
163 int *indexp) 163 int *indexp)
164{ 164{
165#ifndef ROCKBOX
165 float dispx, dispy; 166 float dispx, dispy;
167#endif
166 char tempbuf[UPBUFSIZE], *tp = tempbuf, *bp = x->x_buf; 168 char tempbuf[UPBUFSIZE], *tp = tempbuf, *bp = x->x_buf;
167 int outchars, inchars = x->x_bufsize, nlines = 0, ncolumns = 0, 169 int outchars, inchars = x->x_bufsize, nlines = 0, ncolumns = 0,
168 pixwide, pixhigh; 170 pixwide, pixhigh;
@@ -221,8 +223,10 @@ static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
221 if (outchars > 1950) outchars = 1950; 223 if (outchars > 1950) outchars = 1950;
222 if (!reportedindex) 224 if (!reportedindex)
223 *indexp = outchars; 225 *indexp = outchars;
226#ifndef ROCKBOX
224 dispx = text_xpix(x->x_text, x->x_glist); 227 dispx = text_xpix(x->x_text, x->x_glist);
225 dispy = text_ypix(x->x_text, x->x_glist); 228 dispy = text_ypix(x->x_text, x->x_glist);
229#endif
226 if (nlines < 1) nlines = 1; 230 if (nlines < 1) nlines = 1;
227 if (!widthspec) 231 if (!widthspec)
228 { 232 {