/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 281 by jsorg71, Mon Dec 2 22:57:47 2002 UTC revision 328 by astrand, Tue Feb 18 13:03:51 2003 UTC
# Line 31  extern BOOL fullscreen; Line 31  extern BOOL fullscreen;
31  extern BOOL grab_keyboard;  extern BOOL grab_keyboard;
32  extern BOOL hide_decorations;  extern BOOL hide_decorations;
33  extern char title[];  extern char title[];
34    extern int server_bpp;
35    extern int win_button_size;
36  BOOL enable_compose = False;  BOOL enable_compose = False;
37  BOOL focused;  BOOL focused;
38  BOOL mouse_in_wnd;  BOOL mouse_in_wnd;
# Line 62  static Pixmap backstore; Line 64  static Pixmap backstore;
64  #define PROP_MOTIF_WM_HINTS_ELEMENTS    5  #define PROP_MOTIF_WM_HINTS_ELEMENTS    5
65  typedef struct  typedef struct
66  {  {
67          unsigned long flags;          uint32 flags;
68          unsigned long functions;          uint32 functions;
69          unsigned long decorations;          uint32 decorations;
70          long inputMode;          sint32 inputMode;
71          unsigned long status;          uint32 status;
72  }  }
73  PropMotifWmHints;  PropMotifWmHints;
74    
75    typedef struct
76    {
77            uint32 red;
78            uint32 green;
79            uint32 blue;
80    }
81    PixelColour;
82    
83  #define FILL_RECTANGLE(x,y,cx,cy)\  #define FILL_RECTANGLE(x,y,cx,cy)\
84  { \  { \
# Line 78  PropMotifWmHints; Line 87  PropMotifWmHints;
87                  XFillRectangle(display, backstore, gc, x, y, cx, cy); \                  XFillRectangle(display, backstore, gc, x, y, cx, cy); \
88  }  }
89    
90  #define FILL_RECTANGLE_FAST(x,y,cx,cy)\  #define FILL_RECTANGLE_BACKSTORE(x,y,cx,cy)\
91  { \  { \
92          XFillRectangle(display, ownbackstore ? backstore : wnd, gc, x, y, cx, cy); \          XFillRectangle(display, ownbackstore ? backstore : wnd, gc, x, y, cx, cy); \
93  }  }
# Line 88  BOOL owncolmap = False; Line 97  BOOL owncolmap = False;
97  static Colormap xcolmap;  static Colormap xcolmap;
98  static uint32 *colmap;  static uint32 *colmap;
99    
100  #define TRANSLATE(col)          ( owncolmap ? col : translate_colour(colmap[col]) )  #define TRANSLATE(col)          ( server_bpp != 8 ? translate_colour(col) : owncolmap ? col : translate_colour(colmap[col]) )
101  #define SET_FOREGROUND(col)     XSetForeground(display, gc, TRANSLATE(col));  #define SET_FOREGROUND(col)     XSetForeground(display, gc, TRANSLATE(col));
102  #define SET_BACKGROUND(col)     XSetBackground(display, gc, TRANSLATE(col));  #define SET_BACKGROUND(col)     XSetBackground(display, gc, TRANSLATE(col));
103    
# Line 114  static int rop2_map[] = { Line 123  static int rop2_map[] = {
123  #define SET_FUNCTION(rop2)      { if (rop2 != ROP2_COPY) XSetFunction(display, gc, rop2_map[rop2]); }  #define SET_FUNCTION(rop2)      { if (rop2 != ROP2_COPY) XSetFunction(display, gc, rop2_map[rop2]); }
124  #define RESET_FUNCTION(rop2)    { if (rop2 != ROP2_COPY) XSetFunction(display, gc, GXcopy); }  #define RESET_FUNCTION(rop2)    { if (rop2 != ROP2_COPY) XSetFunction(display, gc, GXcopy); }
125    
126  void  static void
127  mwm_hide_decorations(void)  mwm_hide_decorations(void)
128  {  {
129          PropMotifWmHints motif_hints;          PropMotifWmHints motif_hints;
# Line 128  mwm_hide_decorations(void) Line 137  mwm_hide_decorations(void)
137          hintsatom = XInternAtom(display, "_MOTIF_WM_HINTS", False);          hintsatom = XInternAtom(display, "_MOTIF_WM_HINTS", False);
138          if (!hintsatom)          if (!hintsatom)
139          {          {
140                  error("Failed to get atom _MOTIF_WM_HINTS\n");                  warning("Failed to get atom _MOTIF_WM_HINTS: probably your window manager does not support MWM hints\n");
141                  return;                  return;
142          }          }
143    
# Line 136  mwm_hide_decorations(void) Line 145  mwm_hide_decorations(void)
145                          (unsigned char *) &motif_hints, PROP_MOTIF_WM_HINTS_ELEMENTS);                          (unsigned char *) &motif_hints, PROP_MOTIF_WM_HINTS_ELEMENTS);
146  }  }
147    
148    static PixelColour
149    split_colour15(uint32 colour)
150    {
151            PixelColour rv;
152            rv.red = (colour & 0x7c00) >> 10;
153            rv.red = (rv.red * 0xff) / 0x1f;
154            rv.green = (colour & 0x03e0) >> 5;
155            rv.green = (rv.green * 0xff) / 0x1f;
156            rv.blue = (colour & 0x1f);
157            rv.blue = (rv.blue * 0xff) / 0x1f;
158            return rv;
159    }
160    
161    static PixelColour
162    split_colour16(uint32 colour)
163    {
164            PixelColour rv;
165            rv.red = (colour & 0xf800) >> 11;
166            rv.red = (rv.red * 0xff) / 0x1f;
167            rv.green = (colour & 0x07e0) >> 5;
168            rv.green = (rv.green * 0xff) / 0x3f;
169            rv.blue = (colour & 0x001f);
170            rv.blue = (rv.blue * 0xff) / 0x1f;
171            return rv;
172    }
173    
174    static PixelColour
175    split_colour24(uint32 colour)
176    {
177            PixelColour rv;
178            rv.blue = (colour & 0xff0000) >> 16;
179            rv.green = (colour & 0xff00) >> 8;
180            rv.red = (colour & 0xff);
181            return rv;
182    }
183    
184    static uint32
185    make_colour16(PixelColour pc)
186    {
187            pc.red = (pc.red * 0x1f) / 0xff;
188            pc.green = (pc.green * 0x3f) / 0xff;
189            pc.blue = (pc.blue * 0x1f) / 0xff;
190            return (pc.red << 11) | (pc.green << 5) | pc.blue;
191    }
192    
193    static uint32
194    make_colour24(PixelColour pc)
195    {
196            return (pc.red << 16) | (pc.green << 8) | pc.blue;
197    }
198    
199    static uint32
200    make_colour32(PixelColour pc)
201    {
202            return (pc.red << 16) | (pc.green << 8) | pc.blue;
203    }
204    
205    #define BSWAP16(x) { x = (((x & 0xff) << 8) | (x >> 8)); }
206    #define BSWAP24(x) { x = (((x & 0xff) << 16) | (x >> 16) | ((x >> 8) & 0xff00)); }
207    #define BSWAP32(x) { x = (((x & 0xff00ff) << 8) | ((x >> 8) & 0xff00ff)); \
208                            x = (x << 16) | (x >> 16); }
209    
210    static uint32
211    translate_colour(uint32 colour)
212    {
213            switch (server_bpp)
214            {
215                    case 15:
216                            switch (bpp)
217                            {
218                                    case 16:
219                                            colour = make_colour16(split_colour15(colour));
220                                            break;
221                                    case 24:
222                                            colour = make_colour24(split_colour15(colour));
223                                            break;
224                                    case 32:
225                                            colour = make_colour32(split_colour15(colour));
226                                            break;
227                            }
228                            break;
229                    case 16:
230                            switch (bpp)
231                            {
232                                    case 16:
233                                            break;
234                                    case 24:
235                                            colour = make_colour24(split_colour16(colour));
236                                            break;
237                                    case 32:
238                                            colour = make_colour32(split_colour16(colour));
239                                            break;
240                            }
241                            break;
242                    case 24:
243                            switch (bpp)
244                            {
245                                    case 16:
246                                            colour = make_colour16(split_colour24(colour));
247                                            break;
248                                    case 24:
249                                            break;
250                                    case 32:
251                                            colour = make_colour32(split_colour24(colour));
252                                            break;
253                            }
254                            break;
255            }
256            switch (bpp)
257            {
258                    case 16:
259                            if (host_be != xserver_be)
260                                    BSWAP16(colour);
261                            break;
262    
263                    case 24:
264                            if (xserver_be)
265                                    BSWAP24(colour);
266                            break;
267    
268                    case 32:
269                            if (host_be != xserver_be)
270                                    BSWAP32(colour);
271                            break;
272            }
273    
274            return colour;
275    }
276    
277  static void  static void
278  translate8(uint8 * data, uint8 * out, uint8 * end)  translate8to8(uint8 * data, uint8 * out, uint8 * end)
279  {  {
280          while (out < end)          while (out < end)
281                  *(out++) = (uint8) colmap[*(data++)];                  *(out++) = (uint8) colmap[*(data++)];
282  }  }
283    
284  static void  static void
285  translate16(uint8 * data, uint16 * out, uint16 * end)  translate8to16(uint8 * data, uint16 * out, uint16 * end)
286  {  {
287          while (out < end)          while (out < end)
288                  *(out++) = (uint16) colmap[*(data++)];                  *(out++) = (uint16) colmap[*(data++)];
# Line 152  translate16(uint8 * data, uint16 * out, Line 290  translate16(uint8 * data, uint16 * out,
290    
291  /* little endian - conversion happens when colourmap is built */  /* little endian - conversion happens when colourmap is built */
292  static void  static void
293  translate24(uint8 * data, uint8 * out, uint8 * end)  translate8to24(uint8 * data, uint8 * out, uint8 * end)
294  {  {
295          uint32 value;          uint32 value;
296    
# Line 166  translate24(uint8 * data, uint8 * out, u Line 304  translate24(uint8 * data, uint8 * out, u
304  }  }
305    
306  static void  static void
307  translate32(uint8 * data, uint32 * out, uint32 * end)  translate8to32(uint8 * data, uint32 * out, uint32 * end)
308  {  {
309          while (out < end)          while (out < end)
310                  *(out++) = colmap[*(data++)];                  *(out++) = colmap[*(data++)];
311  }  }
312    
313  static uint8 *  /* todo the remaining translate function might need some big endian check ?? */
314  translate_image(int width, int height, uint8 * data)  
315    static void
316    translate15to16(uint16 * data, uint16 * out, uint16 * end)
317  {  {
318          int size = width * height * bpp / 8;          while (out < end)
319          uint8 *out = xmalloc(size);                  *(out++) = (uint16) make_colour16(split_colour15(*(data++)));
320          uint8 *end = out + size;  }
321    
322          switch (bpp)  static void
323    translate15to24(uint16 * data, uint8 * out, uint8 * end)
324    {
325            uint32 value;
326    
327            while (out < end)
328          {          {
329                  case 8:                  value = make_colour24(split_colour15(*(data++)));
330                          translate8(data, out, end);                  *(out++) = value;
331                          break;                  *(out++) = value >> 8;
332                    *(out++) = value >> 16;
333            }
334    }
335    
336                  case 16:  static void
337                          translate16(data, (uint16 *) out, (uint16 *) end);  translate15to32(uint16 * data, uint32 * out, uint32 * end)
338                          break;  {
339            while (out < end)
340                    *(out++) = make_colour32(split_colour15(*(data++)));
341    }
342    
343                  case 24:  static void
344                          translate24(data, out, end);  translate16to16(uint16 * data, uint16 * out, uint16 * end)
345                          break;  {
346            while (out < end)
347                    *(out++) = (uint16) (*(data++));
348    }
349    
350                  case 32:  
351                          translate32(data, (uint32 *) out, (uint32 *) end);  static void
352                          break;  translate16to24(uint16 * data, uint8 * out, uint8 * end)
353    {
354            uint32 value;
355    
356            while (out < end)
357            {
358                    value = make_colour24(split_colour16(*(data++)));
359                    *(out++) = value;
360                    *(out++) = value >> 8;
361                    *(out++) = value >> 16;
362          }          }
363    }
364    
365          return out;  static void
366    translate16to32(uint16 * data, uint32 * out, uint32 * end)
367    {
368            while (out < end)
369                    *(out++) = make_colour32(split_colour16(*(data++)));
370  }  }
371    
372  #define BSWAP16(x) { x = (((x & 0xff) << 8) | (x >> 8)); }  static void
373  #define BSWAP24(x) { x = (((x & 0xff) << 16) | (x >> 16) | ((x >> 8) & 0xff00)); }  translate24to16(uint8 * data, uint16 * out, uint16 * end)
374  #define BSWAP32(x) { x = (((x & 0xff00ff) << 8) | ((x >> 8) & 0xff00ff)); \  {
375                          x = (x << 16) | (x >> 16); }          uint32 pixel = 0;
376            while (out < end)
377            {
378                    pixel = *(data++) << 16;
379                    pixel |= *(data++) << 8;
380                    pixel |= *(data++);
381                    *(out++) = (uint16) make_colour16(split_colour24(pixel));
382            }
383    }
384    
385  static uint32  static void
386  translate_colour(uint32 colour)  translate24to24(uint8 * data, uint8 * out, uint8 * end)
387  {  {
388          switch (bpp)          while (out < end)
389          {          {
390                  case 16:                  *(out++) = (*(data++));
391                          if (host_be != xserver_be)          }
392                                  BSWAP16(colour);  }
                         break;  
393    
394    static void
395    translate24to32(uint8 * data, uint32 * out, uint32 * end)
396    {
397            uint32 pixel = 0;
398            while (out < end)
399            {
400                    memcpy(&pixel, data, 3);
401                    data += 3;
402                    *(out++) = pixel;
403            }
404    }
405    
406    static uint8 *
407    translate_image(int width, int height, uint8 * data)
408    {
409            int size = width * height * bpp / 8;
410            uint8 *out = xmalloc(size);
411            uint8 *end = out + size;
412    
413            switch (server_bpp)
414            {
415                  case 24:                  case 24:
416                          if (xserver_be)                          switch (bpp)
417                                  BSWAP24(colour);                          {
418                                    case 32:
419                                            translate24to32(data, (uint32 *) out, (uint32 *) end);
420                                            break;
421                                    case 24:
422                                            translate24to24(data, out, end);
423                                            break;
424                                    case 16:
425                                            translate24to16(data, (uint16 *) out, (uint16 *) end);
426                                            break;
427                            }
428                          break;                          break;
429                    case 16:
430                  case 32:                          switch (bpp)
431                          if (host_be != xserver_be)                          {
432                                  BSWAP32(colour);                                  case 32:
433                                            translate16to32((uint16 *) data, (uint32 *) out,
434                                                            (uint32 *) end);
435                                            break;
436                                    case 24:
437                                            translate16to24((uint16 *) data, out, end);
438                                            break;
439                                    case 16:
440                                            translate16to16((uint16 *) data, (uint16 *) out,
441                                                            (uint16 *) end);
442                                            break;
443                            }
444                            break;
445                    case 15:
446                            switch (bpp)
447                            {
448                                    case 32:
449                                            translate15to32((uint16 *) data, (uint32 *) out,
450                                                            (uint32 *) end);
451                                            break;
452                                    case 24:
453                                            translate15to24((uint16 *) data, out, end);
454                                            break;
455                                    case 16:
456                                            translate15to16((uint16 *) data, (uint16 *) out,
457                                                            (uint16 *) end);
458                                            break;
459                            }
460                            break;
461                    case 8:
462                            switch (bpp)
463                            {
464                                    case 8:
465                                            translate8to8(data, out, end);
466                                            break;
467                                    case 16:
468                                            translate8to16(data, (uint16 *) out, (uint16 *) end);
469                                            break;
470                                    case 24:
471                                            translate8to24(data, out, end);
472                                            break;
473                                    case 32:
474                                            translate8to32(data, (uint32 *) out, (uint32 *) end);
475                                            break;
476                            }
477                          break;                          break;
478          }          }
479            return out;
         return colour;  
480  }  }
481    
482  BOOL  BOOL
# Line 300  ui_init(void) Line 549  ui_init(void)
549          {          {
550                  xcolmap = DefaultColormapOfScreen(screen);                  xcolmap = DefaultColormapOfScreen(screen);
551                  if (depth <= 8)                  if (depth <= 8)
552                  {                          warning("Screen depth is 8 bits or lower: you may want to use -C for a private colourmap\n");
                         printf("You're using a screen depth of 8-bits or lower\n");  
                         printf("If you get scewed colours, try the -C switch\n");  
                 }  
553          }          }
554    
555          gc = XCreateGC(display, RootWindowOfScreen(screen), 0, NULL);          gc = XCreateGC(display, RootWindowOfScreen(screen), 0, NULL);
# Line 318  ui_init(void) Line 564  ui_init(void)
564          if ((width == 0) || (height == 0))          if ((width == 0) || (height == 0))
565          {          {
566                  /* Fetch geometry from _NET_WORKAREA */                  /* Fetch geometry from _NET_WORKAREA */
567                  uint32 xpos, ypos;                  uint32 x, y, cx, cy;
568    
569                  if (get_current_workarea(&xpos, &ypos, &width, &height) < 0)                  if (get_current_workarea(&x, &y, &cx, &cy) == 0)
570                    {
571                            width = cx;
572                            height = cy;
573                    }
574                    else
575                  {                  {
576                          error("Failed to get workarea.\n");                          warning("Failed to get workarea: probably your window manager does not support extended hints\n");
                         error("Perhaps your window manager does not support EWMH?\n");  
                         error("Defaulting to geometry 800x600\n");  
577                          width = 800;                          width = 800;
578                          height = 600;                          height = 600;
579                  }                  }
# Line 355  ui_init(void) Line 604  ui_init(void)
604                  IM = XOpenIM(display, NULL, NULL, NULL);                  IM = XOpenIM(display, NULL, NULL, NULL);
605    
606          xkeymap_init();          xkeymap_init();
607    
608            /* todo take this out when high colour is done */
609            printf("server bpp %d client bpp %d depth %d\n", server_bpp, bpp, depth);
610    
611          return True;          return True;
612  }  }
613    
# Line 602  xwin_process_events(void) Line 855  xwin_process_events(void)
855                                  if (button == 0)                                  if (button == 0)
856                                          break;                                          break;
857    
858                                    /* If win_button_size is nonzero, enable single app mode */
859                                    if (xevent.xbutton.y < win_button_size)
860                                    {
861                                            if (xevent.xbutton.x >= width - win_button_size)
862                                            {
863                                                    /* The close button, do nothing */
864                                                    ;
865                                            }
866                                            else if (xevent.xbutton.x >= width - win_button_size * 2)
867                                            {
868                                                    /* The maximize/restore button. Do not send to
869                                                       server.  It might be a good idea to change the
870                                                       cursor or give some other visible indication
871                                                       that rdesktop inhibited this click */
872                                                    break;
873                                            }
874                                            else if (xevent.xbutton.x >= width - win_button_size * 3)
875                                            {
876                                                    /* The minimize button. Iconify window. */
877                                                    XIconifyWindow(display, wnd,
878                                                                   DefaultScreen(display));
879                                                    break;
880                                            }
881                                    }
882    
883                                  rdp_send_input(time(NULL), RDP_INPUT_MOUSE,                                  rdp_send_input(time(NULL), RDP_INPUT_MOUSE,
884                                                 flags | button, xevent.xbutton.x, xevent.xbutton.y);                                                 flags | button, xevent.xbutton.x, xevent.xbutton.y);
885                                  break;                                  break;
886    
887                          case MotionNotify:                          case MotionNotify:
888                                    if (fullscreen && !focused)
889                                            XSetInputFocus(display, wnd, RevertToPointerRoot,
890                                                           CurrentTime);
891                                  rdp_send_input(time(NULL), RDP_INPUT_MOUSE,                                  rdp_send_input(time(NULL), RDP_INPUT_MOUSE,
892                                                 MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);                                                 MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
893                                  break;                                  break;
# Line 730  ui_create_bitmap(int width, int height, Line 1011  ui_create_bitmap(int width, int height,
1011          tdata = (owncolmap ? data : translate_image(width, height, data));          tdata = (owncolmap ? data : translate_image(width, height, data));
1012          bitmap = XCreatePixmap(display, wnd, width, height, depth);          bitmap = XCreatePixmap(display, wnd, width, height, depth);
1013          image = XCreateImage(display, visual, depth, ZPixmap, 0,          image = XCreateImage(display, visual, depth, ZPixmap, 0,
1014                               (char *) tdata, width, height, 8, 0);                               (char *) tdata, width, height, server_bpp == 8 ? 8 : bpp, 0);
1015    
1016          XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);          XPutImage(display, bitmap, gc, image, 0, 0, 0, 0, width, height);
1017    
# Line 745  ui_paint_bitmap(int x, int y, int cx, in Line 1026  ui_paint_bitmap(int x, int y, int cx, in
1026  {  {
1027          XImage *image;          XImage *image;
1028          uint8 *tdata;          uint8 *tdata;
   
1029          tdata = (owncolmap ? data : translate_image(width, height, data));          tdata = (owncolmap ? data : translate_image(width, height, data));
1030          image = XCreateImage(display, visual, depth, ZPixmap, 0,          image = XCreateImage(display, visual, depth, ZPixmap, 0,
1031                               (char *) tdata, width, height, 8, 0);                               (char *) tdata, width, height, server_bpp == 8 ? 8 : bpp, 0);
1032    
1033          if (ownbackstore)          if (ownbackstore)
1034          {          {
# Line 1189  ui_draw_glyph(int mixmode, Line 1469  ui_draw_glyph(int mixmode,
1469          XSetStipple(display, gc, (Pixmap) glyph);          XSetStipple(display, gc, (Pixmap) glyph);
1470          XSetTSOrigin(display, gc, x, y);          XSetTSOrigin(display, gc, x, y);
1471    
1472          FILL_RECTANGLE_FAST(x, y, cx, cy);          FILL_RECTANGLE_BACKSTORE(x, y, cx, cy);
1473    
1474          XSetFillStyle(display, gc, FillSolid);          XSetFillStyle(display, gc, FillSolid);
1475  }  }
# Line 1218  ui_draw_glyph(int mixmode, Line 1498  ui_draw_glyph(int mixmode,
1498      }\      }\
1499    if (glyph != NULL)\    if (glyph != NULL)\
1500      {\      {\
1501        ui_draw_glyph (mixmode, x + (short) glyph->offset,\        ui_draw_glyph (mixmode, x + glyph->offset,\
1502                       y + (short) glyph->baseline,\                       y + glyph->baseline,\
1503                       glyph->width, glyph->height,\                       glyph->width, glyph->height,\
1504                       glyph->pixmap, 0, 0, bgcolour, fgcolour);\                       glyph->pixmap, 0, 0, bgcolour, fgcolour);\
1505        if (flags & TEXT2_IMPLICIT_X)\        if (flags & TEXT2_IMPLICIT_X)\
# Line 1241  ui_draw_text(uint8 font, uint8 flags, in Line 1521  ui_draw_text(uint8 font, uint8 flags, in
1521    
1522          if (boxcx > 1)          if (boxcx > 1)
1523          {          {
1524                  FILL_RECTANGLE_FAST(boxx, boxy, boxcx, boxcy);                  FILL_RECTANGLE_BACKSTORE(boxx, boxy, boxcx, boxcy);
1525          }          }
1526          else if (mixmode == MIX_OPAQUE)          else if (mixmode == MIX_OPAQUE)
1527          {          {
1528                  FILL_RECTANGLE_FAST(clipx, clipy, clipcx, clipcy);                  FILL_RECTANGLE_BACKSTORE(clipx, clipy, clipcx, clipcy);
1529          }          }
1530    
1531          /* Paint text, character by character */          /* Paint text, character by character */
# Line 1279  ui_draw_text(uint8 font, uint8 flags, in Line 1559  ui_draw_text(uint8 font, uint8 flags, in
1559                                                  else                                                  else
1560                                                          x += text[i + 2];                                                          x += text[i + 2];
1561                                          }                                          }
                                         if (i + 2 < length)  
                                                 i += 3;  
                                         else  
                                                 i += 2;  
                                         length -= i;  
                                         /* this will move pointer from start to first character after FE command */  
                                         text = &(text[i]);  
                                         i = 0;  
1562                                          for (j = 0; j < entry->size; j++)                                          for (j = 0; j < entry->size; j++)
1563                                                  DO_GLYPH(((uint8 *) (entry->data)), j);                                                  DO_GLYPH(((uint8 *) (entry->data)), j);
1564                                  }                                  }
1565                                    if (i + 2 < length)
1566                                            i += 3;
1567                                    else
1568                                            i += 2;
1569                                    length -= i;
1570                                    /* this will move pointer from start to first character after FE command */
1571                                    text = &(text[i]);
1572                                    i = 0;
1573                                  break;                                  break;
1574    
1575                          default:                          default:

Legend:
Removed from v.281  
changed lines
  Added in v.328

  ViewVC Help
Powered by ViewVC 1.1.26