32 |
HBITMAP bitmap; |
HBITMAP bitmap; |
33 |
|
|
34 |
if ((cache_id < NUM_ELEMENTS(bmpcache)) |
if ((cache_id < NUM_ELEMENTS(bmpcache)) |
35 |
&& (cache_idx < NUM_ELEMENTS(bmpcache[0]))) |
&& (cache_idx < NUM_ELEMENTS(bmpcache[0]))) |
36 |
{ |
{ |
37 |
bitmap = bmpcache[cache_id][cache_idx]; |
bitmap = bmpcache[cache_id][cache_idx]; |
38 |
if (bitmap != NULL) |
if (bitmap != NULL) |
49 |
HBITMAP old; |
HBITMAP old; |
50 |
|
|
51 |
if ((cache_id < NUM_ELEMENTS(bmpcache)) |
if ((cache_id < NUM_ELEMENTS(bmpcache)) |
52 |
&& (cache_idx < NUM_ELEMENTS(bmpcache[0]))) |
&& (cache_idx < NUM_ELEMENTS(bmpcache[0]))) |
53 |
{ |
{ |
54 |
old = bmpcache[cache_id][cache_idx]; |
old = bmpcache[cache_id][cache_idx]; |
55 |
if (old != NULL) |
if (old != NULL) |
73 |
FONTGLYPH *glyph; |
FONTGLYPH *glyph; |
74 |
|
|
75 |
if ((font < NUM_ELEMENTS(fontcache)) |
if ((font < NUM_ELEMENTS(fontcache)) |
76 |
&& (character < NUM_ELEMENTS(fontcache[0]))) |
&& (character < NUM_ELEMENTS(fontcache[0]))) |
77 |
{ |
{ |
78 |
glyph = &fontcache[font][character]; |
glyph = &fontcache[font][character]; |
79 |
if (glyph->pixmap != NULL) |
if (glyph->pixmap != NULL) |
86 |
|
|
87 |
/* Store a glyph in the font cache */ |
/* Store a glyph in the font cache */ |
88 |
void cache_put_font(uint8 font, uint16 character, uint16 offset, |
void cache_put_font(uint8 font, uint16 character, uint16 offset, |
89 |
uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap) |
uint16 baseline, uint16 width, uint16 height, |
90 |
|
HGLYPH pixmap) |
91 |
{ |
{ |
92 |
FONTGLYPH *glyph; |
FONTGLYPH *glyph; |
93 |
|
|
94 |
if ((font < NUM_ELEMENTS(fontcache)) |
if ((font < NUM_ELEMENTS(fontcache)) |
95 |
&& (character < NUM_ELEMENTS(fontcache[0]))) |
&& (character < NUM_ELEMENTS(fontcache[0]))) |
96 |
{ |
{ |
97 |
glyph = &fontcache[font][character]; |
glyph = &fontcache[font][character]; |
98 |
if (glyph->pixmap != NULL) |
if (glyph->pixmap != NULL) |
170 |
} |
} |
171 |
|
|
172 |
/* Store desktop data in the cache */ |
/* Store desktop data in the cache */ |
173 |
void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, uint8 *data) |
void cache_put_desktop(uint32 offset, int cx, int cy, int scanline, |
174 |
|
uint8 *data) |
175 |
{ |
{ |
176 |
int length = cx * cy; |
int length = cx * cy; |
177 |
|
|
189 |
ERROR("put desktop %d:%d\n", offset, length); |
ERROR("put desktop %d:%d\n", offset, length); |
190 |
} |
} |
191 |
} |
} |
|
|
|