This commit is contained in:
djes
2016-07-26 21:54:04 +02:00
parent b5ae9895a6
commit e104fe0823

14
osm.pb
View File

@@ -514,8 +514,8 @@ Module OSM
Protected ny = CenterY / OSM\TileSize Protected ny = CenterY / OSM\TileSize
;Pixel shift, aka position in the tile ;Pixel shift, aka position in the tile
Protected DeltaX = *Drawing\x * OSM\TileSize - (Int(*Drawing\x) * OSM\TileSize) Protected DeltaX = *Drawing\x * OSM\TileSize - (tx * OSM\TileSize)
Protected DeltaY = *Drawing\y * OSM\TileSize - (Int(*Drawing\y) * OSM\TileSize) Protected DeltaY = *Drawing\y * OSM\TileSize - (ty * OSM\TileSize)
Debug "Drawing tiles" Debug "Drawing tiles"
@@ -636,6 +636,8 @@ Module OSM
Pointer(CenterX, CenterY, #Red) Pointer(CenterX, CenterY, #Red)
StopVectorDrawing() StopVectorDrawing()
UnlockMutex(*Drawing\Mutex)
;- Redraw ;- Redraw
;If something was not correctly drawn, redraw after a while ;If something was not correctly drawn, redraw after a while
If *Drawing\Dirty If *Drawing\Dirty
@@ -644,9 +646,7 @@ Module OSM
*Drawing\PassNb + 1 *Drawing\PassNb + 1
SignalSemaphore(*Drawing\Semaphore) SignalSemaphore(*Drawing\Semaphore)
EndIf EndIf
UnlockMutex(*Drawing\Mutex)
Until *Drawing\End Until *Drawing\End
EndProcedure EndProcedure
@@ -860,8 +860,8 @@ CompilerIf #PB_Compiler_IsMainFile
CompilerEndIf CompilerEndIf
; IDE Options = PureBasic 5.42 LTS (Windows - x64) ; IDE Options = PureBasic 5.42 LTS (Windows - x64)
; CursorPosition = 635 ; CursorPosition = 514
; FirstLine = 613 ; FirstLine = 496
; Folding = ----- ; Folding = -----
; EnableUnicode ; EnableUnicode
; EnableThread ; EnableThread