151 |
static void |
static void |
152 |
setup_brush(BRUSH * out_brush, BRUSH * in_brush) |
setup_brush(BRUSH * out_brush, BRUSH * in_brush) |
153 |
{ |
{ |
154 |
BRUSHDATA * brush_data; |
BRUSHDATA *brush_data; |
155 |
uint16 cache_idx; |
uint16 cache_idx; |
156 |
uint8 brush_bpp; |
uint8 brush_bpp; |
157 |
|
|
159 |
if (out_brush->style & 0x80) |
if (out_brush->style & 0x80) |
160 |
{ |
{ |
161 |
brush_bpp = out_brush->style & 0x0f; |
brush_bpp = out_brush->style & 0x0f; |
162 |
if (brush_bpp == 1) /* 1 bpp */ |
if (brush_bpp == 1) /* 1 bpp */ |
163 |
{ |
{ |
164 |
cache_idx = out_brush->pattern[0]; |
cache_idx = out_brush->pattern[0]; |
165 |
brush_data = cache_get_brush_data(cache_idx); |
brush_data = cache_get_brush_data(cache_idx); |
1165 |
in_uint8(s, depth); |
in_uint8(s, depth); |
1166 |
in_uint8(s, width); |
in_uint8(s, width); |
1167 |
in_uint8(s, height); |
in_uint8(s, height); |
1168 |
in_uint8s(s, 1); /* type, 0x80 = cached */ |
in_uint8s(s, 1); /* type, 0x80 = cached */ |
1169 |
in_uint8(s, size); |
in_uint8(s, size); |
1170 |
|
|
1171 |
DEBUG(("BRUSHCACHE(idx=%d,dp=%d,wd=%d,ht=%d,sz=%d)\n", cache_idx, depth, |
DEBUG(("BRUSHCACHE(idx=%d,dp=%d,wd=%d,ht=%d,sz=%d)\n", cache_idx, depth, |
1172 |
width, height, size)); |
width, height, size)); |
1173 |
|
|
1174 |
if ((depth == 1) && (width == 8) && (height == 8) && (size == 8)) |
if ((depth == 1) && (width == 8) && (height == 8) && (size == 8)) |
1175 |
{ |
{ |