From ff2bcc0f5912bdfefcdf1b0e4d1f82b913b91000 Mon Sep 17 00:00:00 2001 From: djes Date: Mon, 29 Aug 2016 17:10:35 +0200 Subject: [PATCH] Redraw bugfix --- PBMap.pb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PBMap.pb b/PBMap.pb index 6eb29e4..c3def8b 100644 --- a/PBMap.pb +++ b/PBMap.pb @@ -842,10 +842,10 @@ Module PBMap ;EndIf StopVectorDrawing() ;If there was a problem while drawing, redraw - If PBMap\Dirty - PBMap\Redraw = #True - ;PostEvent(#PB_Event_Gadget, PBMap\Window, PBmap\Gadget, #PB_MAP_REDRAW) - EndIf +; If PBMap\Dirty +; PBMap\Redraw = #True +; ;PostEvent(#PB_Event_Gadget, PBMap\Window, PBmap\Gadget, #PB_MAP_REDRAW) +; EndIf EndProcedure Procedure Refresh() @@ -1083,7 +1083,7 @@ Module PBMap EndProcedure Procedure TimerEvents() - If EventTimer() = PBMap\Timer And PBMap\Redraw + If EventTimer() = PBMap\Timer And (PBMap\Redraw Or PBMap\Dirty) Drawing() EndIf EndProcedure @@ -1246,8 +1246,8 @@ CompilerIf #PB_Compiler_IsMainFile CompilerEndIf ; IDE Options = PureBasic 5.50 (Windows - x64) -; CursorPosition = 603 -; FirstLine = 563 +; CursorPosition = 840 +; FirstLine = 819 ; Folding = ---------- ; EnableThread ; EnableXP