summaryrefslogtreecommitdiff
path: root/navit/navit.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/navit.c')
-rw-r--r--navit/navit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/navit/navit.c b/navit/navit.c
index f80890e2c..14087c4ed 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -490,8 +490,12 @@ void navit_handle_resize(struct navit *this_, int w, int h) {
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)
+ if (this_->ready == 3) {
+ /* About to resize. Cancel drawing whatever it is */
+ graphics_draw_cancel(this_->gra, this_->displaylist);
+ /* draw again even if we did not cancel anything */
navit_draw_async(this_, 1);
+ }
}
static void navit_resize(void *data, int w, int h) {