From cd864070e466022873305b4fc6c6e9b915ce3b78 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 10 Sep 2002 07:07:44 +0000 Subject: added lcd_update_rect() simulator-style git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2255 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/x11/lcd-x11.c | 78 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 62 insertions(+), 16 deletions(-) diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c index e1d1953..7547008 100644 --- a/uisimulator/x11/lcd-x11.c +++ b/uisimulator/x11/lcd-x11.c @@ -56,33 +56,75 @@ void lcd_update (void) int cp=0; XPoint clearpoints[LCD_WIDTH * LCD_HEIGHT]; -#if 0 - screen_resized(LCD_WIDTH, LCD_HEIGHT); - for(y=0; y LCD_WIDTH) + xmax = LCD_WIDTH; + if(ymax >= LCD_HEIGHT/8) + ymax = LCD_HEIGHT/8-1; + + for(; yline