Fix:Core:Moved callback to better position for initial osd drawing
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 23 Feb 2010 21:09:07 +0000 (21:09 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 23 Feb 2010 21:09:07 +0000 (21:09 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2965 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index d4bfbc7..50d68fc 100644 (file)
@@ -260,10 +260,10 @@ navit_handle_resize(struct navit *this_, int w, int h)
                graphics_init(this_->gra);
                graphics_set_rect(this_->gra, &sel.u.p_rect);
        }
+       if (callback) 
+               callback_list_call_attr_1(this_->attr_cbl, attr_graphics_ready, this_);
        if (this_->ready == 3)
                navit_draw(this_);
-       if (callback)
-               callback_list_call_attr_1(this_->attr_cbl, attr_graphics_ready, this_);
 }
 
 static void