diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-02-07 09:42:57 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-02-07 09:42:57 +0000 |
commit | ae262338179fb33c1f064ce27162297c2ced3b64 (patch) | |
tree | 8d6f20c5d33c6037cd9219ce2e333b13d8e56461 /uisimulator/x11/lcd-x11.c | |
parent | f9b44900669c8af2b7a101d201c43beec2bc89dd (diff) |
build and work with the new include path(s)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3214 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/lcd-x11.c')
-rw-r--r-- | uisimulator/x11/lcd-x11.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c index 20e4c6d3a2..0d47160b23 100644 --- a/uisimulator/x11/lcd-x11.c +++ b/uisimulator/x11/lcd-x11.c @@ -46,6 +46,8 @@ extern Display *dpy; #ifdef HAVE_LCD_BITMAP unsigned char lcd_framebuffer_copy[LCD_WIDTH][LCD_HEIGHT/8]; +static int counter; + void lcd_update (void) { int x, y; @@ -55,6 +57,8 @@ void lcd_update (void) int cp=0; struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; + fprintf(stderr, "%04d: lcd_update()\n", counter++); + for(y=0; y<LCD_HEIGHT; y+=8) { for(x=0; x<LCD_WIDTH; x++) { if(lcd_framebuffer[x][y/8] || lcd_framebuffer_copy[x][y/8]) { @@ -104,6 +108,9 @@ void lcd_update_rect(int x_start, int y_start, struct coordinate points[LCD_WIDTH * LCD_HEIGHT]; struct coordinate clearpoints[LCD_WIDTH * LCD_HEIGHT]; + fprintf(stderr, "%04d: lcd_update_rect(%d, %d, %d, %d)\n", + counter++, x_start, y_start, width, height); + /* The Y coordinates have to work on even 8 pixel rows */ ymax = (yline + height)/8; yline /= 8; |