/[rdesktop]/jpeg/rdesktop/trunk/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 /jpeg/rdesktop/trunk/xwin.c

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

revision 1483 by jsorg71, Sat Nov 1 02:37:10 2008 UTC revision 1485 by astrand, Tue Nov 25 08:05:25 2008 UTC
# Line 3070  ui_patblt(uint8 opcode, Line 3070  ui_patblt(uint8 opcode,
3070                          break;                          break;
3071    
3072                  case 3: /* Pattern */                  case 3: /* Pattern */
3073                          if (brush->bd == 0) /* rdp4 brush */                          if (brush->bd == 0)     /* rdp4 brush */
3074                          {                          {
3075                                  for (i = 0; i != 8; i++)                                  for (i = 0; i != 8; i++)
3076                                          ipattern[7 - i] = brush->pattern[i];                                          ipattern[7 - i] = brush->pattern[i];
# Line 3085  ui_patblt(uint8 opcode, Line 3085  ui_patblt(uint8 opcode,
3085                                  XSetTSOrigin(g_display, g_gc, 0, 0);                                  XSetTSOrigin(g_display, g_gc, 0, 0);
3086                                  ui_destroy_glyph((RD_HGLYPH) fill);                                  ui_destroy_glyph((RD_HGLYPH) fill);
3087                          }                          }
3088                          else if (brush->bd->colour_code > 1) /* > 1 bpp */                          else if (brush->bd->colour_code > 1)    /* > 1 bpp */
3089                          {                          {
3090                                  fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data);                                  fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data);
3091                                  XSetFillStyle(g_display, g_gc, FillTiled);                                  XSetFillStyle(g_display, g_gc, FillTiled);
# Line 3271  ui_polygon(uint8 opcode, Line 3271  ui_polygon(uint8 opcode,
3271                          break;                          break;
3272    
3273                  case 3: /* Pattern */                  case 3: /* Pattern */
3274                          if (brush->bd == 0) /* rdp4 brush */                          if (brush->bd == 0)     /* rdp4 brush */
3275                          {                          {
3276                                  for (i = 0; i != 8; i++)                                  for (i = 0; i != 8; i++)
3277                                          ipattern[7 - i] = brush->pattern[i];                                          ipattern[7 - i] = brush->pattern[i];
# Line 3286  ui_polygon(uint8 opcode, Line 3286  ui_polygon(uint8 opcode,
3286                                  XSetTSOrigin(g_display, g_gc, 0, 0);                                  XSetTSOrigin(g_display, g_gc, 0, 0);
3287                                  ui_destroy_glyph((RD_HGLYPH) fill);                                  ui_destroy_glyph((RD_HGLYPH) fill);
3288                          }                          }
3289                          else if (brush->bd->colour_code > 1) /* > 1 bpp */                          else if (brush->bd->colour_code > 1)    /* > 1 bpp */
3290                          {                          {
3291                                  fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data);                                  fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data);
3292                                  XSetFillStyle(g_display, g_gc, FillTiled);                                  XSetFillStyle(g_display, g_gc, FillTiled);
# Line 3376  ui_ellipse(uint8 opcode, Line 3376  ui_ellipse(uint8 opcode,
3376                          break;                          break;
3377    
3378                  case 3: /* Pattern */                  case 3: /* Pattern */
3379                          if (brush->bd == 0) /* rdp4 brush */                          if (brush->bd == 0)     /* rdp4 brush */
3380                          {                          {
3381                                  for (i = 0; i != 8; i++)                                  for (i = 0; i != 8; i++)
3382                                          ipattern[7 - i] = brush->pattern[i];                                          ipattern[7 - i] = brush->pattern[i];
# Line 3391  ui_ellipse(uint8 opcode, Line 3391  ui_ellipse(uint8 opcode,
3391                                  XSetTSOrigin(g_display, g_gc, 0, 0);                                  XSetTSOrigin(g_display, g_gc, 0, 0);
3392                                  ui_destroy_glyph((RD_HGLYPH) fill);                                  ui_destroy_glyph((RD_HGLYPH) fill);
3393                          }                          }
3394                          else if (brush->bd->colour_code > 1) /* > 1 bpp */                          else if (brush->bd->colour_code > 1)    /* > 1 bpp */
3395                          {                          {
3396                                  fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data);                                  fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data);
3397                                  XSetFillStyle(g_display, g_gc, FillTiled);                                  XSetFillStyle(g_display, g_gc, FillTiled);

Legend:
Removed from v.1483  
changed lines
  Added in v.1485

  ViewVC Help
Powered by ViewVC 1.1.26