diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/win32/lcd-win32.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c index 216aa65a0e..40f74ee2d6 100644 --- a/uisimulator/win32/lcd-win32.c +++ b/uisimulator/win32/lcd-win32.c | |||
@@ -276,6 +276,10 @@ void lcd_backlight (bool on) | |||
276 | void lcdcolors(int index, int count, RGBQUAD *start, RGBQUAD *end) | 276 | void lcdcolors(int index, int count, RGBQUAD *start, RGBQUAD *end) |
277 | { | 277 | { |
278 | int i; | 278 | int i; |
279 | |||
280 | bmi.bmiHeader.biClrUsed = index + count; | ||
281 | bmi.bmiHeader.biClrImportant = index + count; | ||
282 | |||
279 | count--; | 283 | count--; |
280 | for (i = 0; i <= count; i++) | 284 | for (i = 0; i <= count; i++) |
281 | { | 285 | { |
@@ -293,6 +297,10 @@ void lcdcolors(int index, int count, RGBQUAD *start, RGBQUAD *end) | |||
293 | void lcdremotecolors(int index, int count, RGBQUAD *start, RGBQUAD *end) | 297 | void lcdremotecolors(int index, int count, RGBQUAD *start, RGBQUAD *end) |
294 | { | 298 | { |
295 | int i; | 299 | int i; |
300 | |||
301 | remote_bmi.bmiHeader.biClrUsed = index + count; | ||
302 | remote_bmi.bmiHeader.biClrImportant = index + count; | ||
303 | |||
296 | count--; | 304 | count--; |
297 | for (i = 0; i <= count; i++) | 305 | for (i = 0; i <= count; i++) |
298 | { | 306 | { |
@@ -309,8 +317,6 @@ void lcdremotecolors(int index, int count, RGBQUAD *start, RGBQUAD *end) | |||
309 | /* initialise simulator lcd driver */ | 317 | /* initialise simulator lcd driver */ |
310 | void simlcdinit(void) | 318 | void simlcdinit(void) |
311 | { | 319 | { |
312 | bmi.bmiHeader.biClrUsed = (1<<LCD_DEPTH); | ||
313 | bmi.bmiHeader.biClrImportant = (1<<LCD_DEPTH); | ||
314 | lcdcolors(0, (1<<LCD_DEPTH), &color_zero, &color_max); | 320 | lcdcolors(0, (1<<LCD_DEPTH), &color_zero, &color_max); |
315 | #ifdef HAVE_REMOTE_LCD | 321 | #ifdef HAVE_REMOTE_LCD |
316 | lcdremotecolors(0, (1<<LCD_REMOTE_DEPTH), &remote_color_zero, &remote_color_max); | 322 | lcdremotecolors(0, (1<<LCD_REMOTE_DEPTH), &remote_color_zero, &remote_color_max); |