992 |
/* brush */ BRUSH *brush, int bgcolour, int fgcolour) |
/* brush */ BRUSH *brush, int bgcolour, int fgcolour) |
993 |
{ |
{ |
994 |
Pixmap fill; |
Pixmap fill; |
995 |
|
uint8 i, ipattern[8]; |
996 |
|
|
997 |
SET_FUNCTION(opcode); |
SET_FUNCTION(opcode); |
998 |
|
|
1004 |
break; |
break; |
1005 |
|
|
1006 |
case 3: /* Pattern */ |
case 3: /* Pattern */ |
1007 |
fill = (Pixmap)ui_create_glyph(8, 8, brush->pattern); |
for (i = 0; i != 8; i++) |
1008 |
|
ipattern[7 - i] = brush->pattern[i]; |
1009 |
|
fill = (Pixmap) ui_create_glyph(8, 8, ipattern); |
1010 |
|
|
1011 |
SET_FOREGROUND(bgcolour); |
SET_FOREGROUND(bgcolour); |
1012 |
SET_BACKGROUND(fgcolour); |
SET_BACKGROUND(fgcolour); |