From: tegzed Date: Mon, 13 Dec 2010 17:58:21 +0000 (+0000) Subject: Fix:graphics/opengl:Improved refresh after setting disabled state X-Git-Tag: navit-0.5.0.5194svn~1414 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e97e2edd64ccca2d03c4f68a5585d906bcdbec6c;p=profile%2Fivi%2Fnavit.git Fix:graphics/opengl:Improved refresh after setting disabled state git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3781 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/graphics/opengl/graphics_opengl.c b/navit/navit/graphics/opengl/graphics_opengl.c index 52ed73e..0e5c004 100644 --- a/navit/navit/graphics/opengl/graphics_opengl.c +++ b/navit/navit/graphics/opengl/graphics_opengl.c @@ -924,12 +924,14 @@ redraw_screen (struct graphics_priv *gr) overlay = gr->overlays; while (gr->overlay_enabled && overlay) { + if(overlay->overlay_enabled) { glPushMatrix (); struct point p_eff; get_overlay_pos (overlay, &p_eff); glTranslatef (p_eff.x, p_eff.y, 1); glCallList (overlay->DLid); glPopMatrix (); + } overlay = overlay->next; } glutSwapBuffers (); @@ -1042,7 +1044,8 @@ static void overlay_disable (struct graphics_priv *gr, int disable) { gr->overlay_enabled = !disable; - redraw_screen(graphics_priv_root); + gr->force_redraw = 1; + draw_mode(gr,draw_mode_end); } static void