Fix:Core:Setup transformation unconditionally
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 31 May 2010 12:09:52 +0000 (12:09 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 31 May 2010 12:09:52 +0000 (12:09 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3328 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index bfb481a..49b86bd 100644 (file)
@@ -257,16 +257,14 @@ navit_handle_resize(struct navit *this_, int w, int h)
        struct map_selection sel;
        int callback=(this_->ready == 1);
        this_->ready |= 2;
-       if (this_->w != w || this_->h != h) {
-               memset(&sel, 0, sizeof(sel));
-               this_->w=w;
-               this_->h=h;
-               sel.u.p_rect.rl.x=w;
-               sel.u.p_rect.rl.y=h;
-               transform_set_screen_selection(this_->trans, &sel);
-               graphics_init(this_->gra);
-               graphics_set_rect(this_->gra, &sel.u.p_rect);
-       }
+       memset(&sel, 0, sizeof(sel));
+       this_->w=w;
+       this_->h=h;
+       sel.u.p_rect.rl.x=w;
+       sel.u.p_rect.rl.y=h;
+       transform_set_screen_selection(this_->trans, &sel);
+       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)