/[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 279 by n-ki, Tue Nov 26 10:09:14 2002 UTC revision 286 by jsorg71, Mon Dec 23 18:40:03 2002 UTC
# Line 78  PropMotifWmHints; Line 78  PropMotifWmHints;
78                  XFillRectangle(display, backstore, gc, x, y, cx, cy); \                  XFillRectangle(display, backstore, gc, x, y, cx, cy); \
79  }  }
80    
81    #define FILL_RECTANGLE_FAST(x,y,cx,cy)\
82    { \
83            XFillRectangle(display, ownbackstore ? backstore : wnd, gc, x, y, cx, cy); \
84    }
85    
86  /* colour maps */  /* colour maps */
87  BOOL owncolmap = False;  BOOL owncolmap = False;
88  static Colormap xcolmap;  static Colormap xcolmap;
# Line 1184  ui_draw_glyph(int mixmode, Line 1189  ui_draw_glyph(int mixmode,
1189          XSetStipple(display, gc, (Pixmap) glyph);          XSetStipple(display, gc, (Pixmap) glyph);
1190          XSetTSOrigin(display, gc, x, y);          XSetTSOrigin(display, gc, x, y);
1191    
1192          if (ownbackstore)          FILL_RECTANGLE_FAST(x, y, cx, cy);
                 XFillRectangle(display, backstore, gc, x, y, cx, cy);  
         else  
                 XFillRectangle(display, wnd, gc, x, y, cx, cy);  
1193    
1194          XSetFillStyle(display, gc, FillSolid);          XSetFillStyle(display, gc, FillSolid);
1195  }  }
# Line 1239  ui_draw_text(uint8 font, uint8 flags, in Line 1241  ui_draw_text(uint8 font, uint8 flags, in
1241    
1242          if (boxcx > 1)          if (boxcx > 1)
1243          {          {
1244                  FILL_RECTANGLE(boxx, boxy, boxcx, boxcy);                  FILL_RECTANGLE_FAST(boxx, boxy, boxcx, boxcy);
1245          }          }
1246          else if (mixmode == MIX_OPAQUE)          else if (mixmode == MIX_OPAQUE)
1247          {          {
1248                  FILL_RECTANGLE(clipx, clipy, clipcx, clipcy);                  FILL_RECTANGLE_FAST(clipx, clipy, clipcx, clipcy);
1249          }          }
1250    
1251          /* Paint text, character by character */          /* Paint text, character by character */
# Line 1277  ui_draw_text(uint8 font, uint8 flags, in Line 1279  ui_draw_text(uint8 font, uint8 flags, in
1279                                                  else                                                  else
1280                                                          x += text[i + 2];                                                          x += text[i + 2];
1281                                          }                                          }
                                         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;  
1282                                          for (j = 0; j < entry->size; j++)                                          for (j = 0; j < entry->size; j++)
1283                                                  DO_GLYPH(((uint8 *) (entry->data)), j);                                                  DO_GLYPH(((uint8 *) (entry->data)), j);
1284                                  }                                  }
1285                                    if (i + 2 < length)
1286                                            i += 3;
1287                                    else
1288                                            i += 2;
1289                                    length -= i;
1290                                    /* this will move pointer from start to first character after FE command */
1291                                    text = &(text[i]);
1292                                    i = 0;
1293                                  break;                                  break;
1294    
1295                          default:                          default:

Legend:
Removed from v.279  
changed lines
  Added in v.286

  ViewVC Help
Powered by ViewVC 1.1.26