last
This commit is contained in:
12
osm.pb
12
osm.pb
@@ -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
|
||||||
@@ -645,8 +647,6 @@ Module OSM
|
|||||||
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
|
||||||
|
Reference in New Issue
Block a user