3070 |
break; |
break; |
3071 |
|
|
3072 |
case 3: /* Pattern */ |
case 3: /* Pattern */ |
3073 |
for (i = 0; i != 8; i++) |
if (brush->bd == 0) /* rdp4 brush */ |
3074 |
ipattern[7 - i] = brush->pattern[i]; |
{ |
3075 |
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
for (i = 0; i != 8; i++) |
3076 |
SET_FOREGROUND(bgcolour); |
ipattern[7 - i] = brush->pattern[i]; |
3077 |
SET_BACKGROUND(fgcolour); |
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
3078 |
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
SET_FOREGROUND(bgcolour); |
3079 |
XSetStipple(g_display, g_gc, fill); |
SET_BACKGROUND(fgcolour); |
3080 |
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
3081 |
FILL_RECTANGLE_BACKSTORE(x, y, cx, cy); |
XSetStipple(g_display, g_gc, fill); |
3082 |
XSetFillStyle(g_display, g_gc, FillSolid); |
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3083 |
XSetTSOrigin(g_display, g_gc, 0, 0); |
FILL_RECTANGLE_BACKSTORE(x, y, cx, cy); |
3084 |
ui_destroy_glyph((RD_HGLYPH) fill); |
XSetFillStyle(g_display, g_gc, FillSolid); |
3085 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3086 |
|
ui_destroy_glyph((RD_HGLYPH) fill); |
3087 |
|
} |
3088 |
|
else if (brush->bd->colour_code > 1) /* > 1 bpp */ |
3089 |
|
{ |
3090 |
|
fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data); |
3091 |
|
XSetFillStyle(g_display, g_gc, FillTiled); |
3092 |
|
XSetTile(g_display, g_gc, fill); |
3093 |
|
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3094 |
|
FILL_RECTANGLE_BACKSTORE(x, y, cx, cy); |
3095 |
|
XSetFillStyle(g_display, g_gc, FillSolid); |
3096 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3097 |
|
ui_destroy_bitmap((RD_HBITMAP) fill); |
3098 |
|
} |
3099 |
|
else |
3100 |
|
{ |
3101 |
|
fill = (Pixmap) ui_create_glyph(8, 8, brush->bd->data); |
3102 |
|
SET_FOREGROUND(bgcolour); |
3103 |
|
SET_BACKGROUND(fgcolour); |
3104 |
|
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
3105 |
|
XSetStipple(g_display, g_gc, fill); |
3106 |
|
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3107 |
|
FILL_RECTANGLE_BACKSTORE(x, y, cx, cy); |
3108 |
|
XSetFillStyle(g_display, g_gc, FillSolid); |
3109 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3110 |
|
ui_destroy_glyph((RD_HGLYPH) fill); |
3111 |
|
} |
3112 |
break; |
break; |
3113 |
|
|
3114 |
default: |
default: |
3271 |
break; |
break; |
3272 |
|
|
3273 |
case 3: /* Pattern */ |
case 3: /* Pattern */ |
3274 |
for (i = 0; i != 8; i++) |
if (brush->bd == 0) /* rdp4 brush */ |
3275 |
ipattern[7 - i] = brush->pattern[i]; |
{ |
3276 |
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
for (i = 0; i != 8; i++) |
3277 |
SET_FOREGROUND(bgcolour); |
ipattern[7 - i] = brush->pattern[i]; |
3278 |
SET_BACKGROUND(fgcolour); |
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
3279 |
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
SET_FOREGROUND(bgcolour); |
3280 |
XSetStipple(g_display, g_gc, fill); |
SET_BACKGROUND(fgcolour); |
3281 |
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
3282 |
FILL_POLYGON((XPoint *) point, npoints); |
XSetStipple(g_display, g_gc, fill); |
3283 |
XSetFillStyle(g_display, g_gc, FillSolid); |
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3284 |
XSetTSOrigin(g_display, g_gc, 0, 0); |
FILL_POLYGON((XPoint *) point, npoints); |
3285 |
ui_destroy_glyph((RD_HGLYPH) fill); |
XSetFillStyle(g_display, g_gc, FillSolid); |
3286 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3287 |
|
ui_destroy_glyph((RD_HGLYPH) fill); |
3288 |
|
} |
3289 |
|
else if (brush->bd->colour_code > 1) /* > 1 bpp */ |
3290 |
|
{ |
3291 |
|
fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data); |
3292 |
|
XSetFillStyle(g_display, g_gc, FillTiled); |
3293 |
|
XSetTile(g_display, g_gc, fill); |
3294 |
|
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3295 |
|
FILL_POLYGON((XPoint *) point, npoints); |
3296 |
|
XSetFillStyle(g_display, g_gc, FillSolid); |
3297 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3298 |
|
ui_destroy_bitmap((RD_HBITMAP) fill); |
3299 |
|
} |
3300 |
|
else |
3301 |
|
{ |
3302 |
|
fill = (Pixmap) ui_create_glyph(8, 8, brush->bd->data); |
3303 |
|
SET_FOREGROUND(bgcolour); |
3304 |
|
SET_BACKGROUND(fgcolour); |
3305 |
|
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
3306 |
|
XSetStipple(g_display, g_gc, fill); |
3307 |
|
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3308 |
|
FILL_POLYGON((XPoint *) point, npoints); |
3309 |
|
XSetFillStyle(g_display, g_gc, FillSolid); |
3310 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3311 |
|
ui_destroy_glyph((RD_HGLYPH) fill); |
3312 |
|
} |
3313 |
break; |
break; |
3314 |
|
|
3315 |
default: |
default: |
3376 |
break; |
break; |
3377 |
|
|
3378 |
case 3: /* Pattern */ |
case 3: /* Pattern */ |
3379 |
for (i = 0; i != 8; i++) |
if (brush->bd == 0) /* rdp4 brush */ |
3380 |
ipattern[7 - i] = brush->pattern[i]; |
{ |
3381 |
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
for (i = 0; i != 8; i++) |
3382 |
SET_FOREGROUND(bgcolour); |
ipattern[7 - i] = brush->pattern[i]; |
3383 |
SET_BACKGROUND(fgcolour); |
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
3384 |
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
SET_FOREGROUND(bgcolour); |
3385 |
XSetStipple(g_display, g_gc, fill); |
SET_BACKGROUND(fgcolour); |
3386 |
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
3387 |
DRAW_ELLIPSE(x, y, cx, cy, fillmode); |
XSetStipple(g_display, g_gc, fill); |
3388 |
XSetFillStyle(g_display, g_gc, FillSolid); |
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3389 |
XSetTSOrigin(g_display, g_gc, 0, 0); |
DRAW_ELLIPSE(x, y, cx, cy, fillmode); |
3390 |
ui_destroy_glyph((RD_HGLYPH) fill); |
XSetFillStyle(g_display, g_gc, FillSolid); |
3391 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3392 |
|
ui_destroy_glyph((RD_HGLYPH) fill); |
3393 |
|
} |
3394 |
|
else if (brush->bd->colour_code > 1) /* > 1 bpp */ |
3395 |
|
{ |
3396 |
|
fill = (Pixmap) ui_create_bitmap(8, 8, brush->bd->data); |
3397 |
|
XSetFillStyle(g_display, g_gc, FillTiled); |
3398 |
|
XSetTile(g_display, g_gc, fill); |
3399 |
|
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3400 |
|
DRAW_ELLIPSE(x, y, cx, cy, fillmode); |
3401 |
|
XSetFillStyle(g_display, g_gc, FillSolid); |
3402 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3403 |
|
ui_destroy_bitmap((RD_HBITMAP) fill); |
3404 |
|
} |
3405 |
|
else |
3406 |
|
{ |
3407 |
|
fill = (Pixmap) ui_create_glyph(8, 8, brush->bd->data); |
3408 |
|
SET_FOREGROUND(bgcolour); |
3409 |
|
SET_BACKGROUND(fgcolour); |
3410 |
|
XSetFillStyle(g_display, g_gc, FillOpaqueStippled); |
3411 |
|
XSetStipple(g_display, g_gc, fill); |
3412 |
|
XSetTSOrigin(g_display, g_gc, brush->xorigin, brush->yorigin); |
3413 |
|
DRAW_ELLIPSE(x, y, cx, cy, fillmode); |
3414 |
|
XSetFillStyle(g_display, g_gc, FillSolid); |
3415 |
|
XSetTSOrigin(g_display, g_gc, 0, 0); |
3416 |
|
ui_destroy_glyph((RD_HGLYPH) fill); |
3417 |
|
} |
3418 |
break; |
break; |
3419 |
|
|
3420 |
default: |
default: |