From c1543511b342162b2b537485c6646186037d8845 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 27 Apr 2002 23:41:41 +0000 Subject: runs the app now, improved the lcd simulation a bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@281 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/Makefile | 2 +- uisimulator/lcd-x11.c | 42 ++++++++++++++++++++++++++++++++++++++++-- uisimulator/uibasic.c | 14 ++++++++++---- 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/uisimulator/Makefile b/uisimulator/Makefile index a2212e0d46..27dad9f178 100644 --- a/uisimulator/Makefile +++ b/uisimulator/Makefile @@ -43,7 +43,7 @@ CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) #SRCS = $(wildcard *.c) SRCS = screenhack.c uibasic.c resources.c visual.c lcd.c lcd-x11.c \ - button-x11.c chartables.c tetris.c + button-x11.c chartables.c tetris.c app.c OBJS := $(SRCS:c=o) diff --git a/uisimulator/lcd-x11.c b/uisimulator/lcd-x11.c index cd2b22b354..9659426f02 100644 --- a/uisimulator/lcd-x11.c +++ b/uisimulator/lcd-x11.c @@ -42,13 +42,18 @@ extern unsigned char display[LCD_WIDTH][LCD_HEIGHT/8]; extern void screen_resized(int width, int height); extern Display *dpy; +unsigned char display_copy[LCD_WIDTH][LCD_HEIGHT/8]; + void lcd_update (void) { int x, y; int p=0; int bit; XPoint points[LCD_WIDTH * LCD_HEIGHT]; + int cp=0; + XPoint clearpoints[LCD_WIDTH * LCD_HEIGHT]; +#if 0 screen_resized(LCD_WIDTH, LCD_HEIGHT); for(y=0; y