summaryrefslogtreecommitdiffstats
path: root/uisimulator/x11/uibasic.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-10-23 23:49:46 +0000
committerJens Arnold <amiconn@rockbox.org>2005-10-23 23:49:46 +0000
commit48be8e6a8b45fa16380af97829ba944430a78f17 (patch)
tree4844e52532e3ce4981333deddcf8aefe9cdc8d77 /uisimulator/x11/uibasic.c
parentfc03c8e3c9a4067beccda3303236044d970d336b (diff)
downloadrockbox-48be8e6a8b45fa16380af97829ba944430a78f17.tar.gz
rockbox-48be8e6a8b45fa16380af97829ba944430a78f17.zip
X11 simulator: * Correctly redraw the window when it was destroyed by overlaying (X11 'Expose' event). * Simplified, corrected and unified redraw algorithm for main & remote bitmap display.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7655 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/uibasic.c')
-rw-r--r--uisimulator/x11/uibasic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uisimulator/x11/uibasic.c b/uisimulator/x11/uibasic.c
index 40389e946e..57870c39d3 100644
--- a/uisimulator/x11/uibasic.c
+++ b/uisimulator/x11/uibasic.c
@@ -144,7 +144,6 @@ void screen_resized(int width, int height)
XFillRectangle(dpy, window, draw_gc, 0, 0, width*display_zoom,
height*display_zoom);
XtAppUnlock(app);
- lcd_display_redraw=true;
screen_redraw();
}
@@ -259,6 +258,7 @@ void screen_redraw()
drawline(1, X2, Y1, X2, Y2);
drawline(1, X1, Y2, X2, Y2);
drawline(1, X1, Y1, X1, Y2);
+ lcd_display_redraw = true;
lcd_update();
#ifdef LCD_REMOTE_HEIGHT
/* draw a border around the remote LCD screen */
@@ -271,6 +271,7 @@ void screen_redraw()
drawline(1, RX2, RY1, RX2, RY2);
drawline(1, RX1, RY2, RX2, RY2);
drawline(1, RX1, RY1, RX1, RY2);
+ lcd_display_redraw = true;
lcd_remote_update();
#endif
}