Add:Core:Option to force a redraw during unblock
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 30 Jun 2010 06:13:50 +0000 (06:13 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 30 Jun 2010 06:13:50 +0000 (06:13 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3453 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index 95f987a..54e3c77 100644 (file)
@@ -2323,18 +2323,17 @@ navit_disable_suspend() {
 int
 navit_block(struct navit *this_, int block)
 {
-       if (block) {
+       if (block > 0) {
                this_->blocked |= 1;
                if (graphics_draw_cancel(this_->gra, this_->displaylist))
                        this_->blocked |= 2;
                return 0;
        }
-       if (this_->blocked & 2) {
-               this_->blocked=0;
+       this_->blocked=0;
+       if ((this_->blocked & 2) || block < 0) {
                navit_draw(this_);
                return 1;
        }
-       this_->blocked=0;
        return 0;
 }