gui: refresh the local bitmap instead of referencing the global symbol lcd_bitmap.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Apr 2010 13:55:23 +0000 (13:55 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Apr 2010 13:55:23 +0000 (13:55 +0000)
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

bertos/gui/menu.c

index c3fc3d2b916c365303f7326409731cbf8b5d13c3..86e8f17dd4453cfc4bd277f48b8c9190c6042454 100644 (file)
@@ -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 */