summaryrefslogtreecommitdiff
path: root/uisimulator/win32/lcd-win32.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2003-12-23 23:41:45 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2003-12-23 23:41:45 +0000
commit5040cc53ec0e0281b2824b3a82d360adc60eff4c (patch)
tree80abb5a51247bb69aa69b1f98b922aa20a875779 /uisimulator/win32/lcd-win32.c
parent2d720b2a7968666bfc315026c8a69b8a762aa058 (diff)
downloadrockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.tar.gz
rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.zip
Screen buffer transposed, such that bytes in X-direction are consecutive. This enables my turbocharged lcd_write_data() for regular screen updates. Please check the X11 sim, Win32 works.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4177 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32/lcd-win32.c')
-rw-r--r--uisimulator/win32/lcd-win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c
index dcdb16f1f1..243e83dd2e 100644
--- a/uisimulator/win32/lcd-win32.c
+++ b/uisimulator/win32/lcd-win32.c
@@ -23,7 +23,7 @@
23#include "lcd.h" 23#include "lcd.h"
24#include "lcd-playersim.h" 24#include "lcd-playersim.h"
25 25
26unsigned char lcd_framebuffer[LCD_WIDTH][LCD_HEIGHT/8]; /* the display */ 26unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; /* the display */
27char bitmap[LCD_HEIGHT][LCD_WIDTH]; /* the ui display */ 27char bitmap[LCD_HEIGHT][LCD_WIDTH]; /* the ui display */
28 28
29BITMAPINFO2 bmi = 29BITMAPINFO2 bmi =
@@ -80,7 +80,7 @@ void lcd_update()
80 80
81 for (x = 0; x < LCD_WIDTH; x++) 81 for (x = 0; x < LCD_WIDTH; x++)
82 for (y = 0; y < LCD_HEIGHT; y++) 82 for (y = 0; y < LCD_HEIGHT; y++)
83 bitmap[y][x] = ((lcd_framebuffer[x][y/8] >> (y & 7)) & 1); 83 bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
84 84
85 InvalidateRect (hGUIWnd, NULL, FALSE); 85 InvalidateRect (hGUIWnd, NULL, FALSE);
86 86
@@ -107,7 +107,7 @@ void lcd_update_rect(int x_start, int y_start,
107 107
108 for (x = x_start; x < xmax; x++) 108 for (x = x_start; x < xmax; x++)
109 for (y = y_start; y < ymax; y++) 109 for (y = y_start; y < ymax; y++)
110 bitmap[y][x] = ((lcd_framebuffer[x][y/8] >> (y & 7)) & 1); 110 bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
111 111
112 /* Bagder: If I only knew how, I would make this call only invalidate 112 /* Bagder: If I only knew how, I would make this call only invalidate
113 the actual rectangle we want updated here, this NULL thing here will 113 the actual rectangle we want updated here, this NULL thing here will