From: arighi Date: Wed, 21 Apr 2010 13:55:23 +0000 (+0000) Subject: gui: refresh the local bitmap instead of referencing the global symbol lcd_bitmap. X-Git-Tag: 2.5.0~416 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=19f47b8ce8f12aadcd8194c9c5e9c9763678ce3b;p=bertos.git gui: refresh the local bitmap instead of referencing the global symbol lcd_bitmap. This avoid to declare a global symbol lcd_bitmap when using the smooth menu scrolling. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3492 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/gui/menu.c b/bertos/gui/menu.c index c3fc3d2b..86e8f17d 100644 --- a/bertos/gui/menu.c +++ b/bertos/gui/menu.c @@ -295,7 +295,7 @@ static void menu_layout( /* Clear rest of area */ gfx_rectClear(bm, bm->cr.xmin, ypos, bm->cr.xmax, bm->cr.ymax); - lcd_blitBitmap(&lcd_bitmap); + lcd_blitBitmap(bm); } /* Restore old cliprect */