Redraw bugfix

This commit is contained in:
djes
2016-08-29 17:10:35 +02:00
parent e25a66206b
commit ff2bcc0f59

View File

@@ -842,10 +842,10 @@ Module PBMap
;EndIf ;EndIf
StopVectorDrawing() StopVectorDrawing()
;If there was a problem while drawing, redraw ;If there was a problem while drawing, redraw
If PBMap\Dirty ; If PBMap\Dirty
PBMap\Redraw = #True ; PBMap\Redraw = #True
;PostEvent(#PB_Event_Gadget, PBMap\Window, PBmap\Gadget, #PB_MAP_REDRAW) ; ;PostEvent(#PB_Event_Gadget, PBMap\Window, PBmap\Gadget, #PB_MAP_REDRAW)
EndIf ; EndIf
EndProcedure EndProcedure
Procedure Refresh() Procedure Refresh()
@@ -1083,7 +1083,7 @@ Module PBMap
EndProcedure EndProcedure
Procedure TimerEvents() Procedure TimerEvents()
If EventTimer() = PBMap\Timer And PBMap\Redraw If EventTimer() = PBMap\Timer And (PBMap\Redraw Or PBMap\Dirty)
Drawing() Drawing()
EndIf EndIf
EndProcedure EndProcedure
@@ -1246,8 +1246,8 @@ CompilerIf #PB_Compiler_IsMainFile
CompilerEndIf CompilerEndIf
; IDE Options = PureBasic 5.50 (Windows - x64) ; IDE Options = PureBasic 5.50 (Windows - x64)
; CursorPosition = 603 ; CursorPosition = 840
; FirstLine = 563 ; FirstLine = 819
; Folding = ---------- ; Folding = ----------
; EnableThread ; EnableThread
; EnableXP ; EnableXP