From d1d24f223cf3ca3c51fb6cc4c656045749f55688 Mon Sep 17 00:00:00 2001 From: djes Date: Fri, 29 Jul 2016 13:44:04 +0200 Subject: [PATCH] Lil Cleaning --- osm.pb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/osm.pb b/osm.pb index 0a0eeb2..a635ef2 100644 --- a/osm.pb +++ b/osm.pb @@ -669,7 +669,7 @@ Module OSM ForEach OSM\Marker() If OSM\Marker()\Location\Latitude <> 0 And OSM\Marker()\Location\Longitude <> 0 GetPixelCoordFromLocation(OSM\Marker()\Location, @Pixel) - If Pixel\X > 0 And Pixel\Y > 0 And Pixel\X < GadgetWidth(OSM\Gadget) And Pixel\Y < GadgetHeight(OSM\Gadget) ; Only if visible ^_^ + If Pixel\X >= 0 And Pixel\Y >= 0 And Pixel\X < GadgetWidth(OSM\Gadget) And Pixel\Y < GadgetHeight(OSM\Gadget) ; Only if visible ^_^ If OSM\Marker()\CallBackPointer > 0 CallFunctionFast(OSM\Marker()\CallBackPointer, Pixel\X, Pixel\Y) Else @@ -869,7 +869,6 @@ Module OSM ;move Marker If OSM\EditMarkerIndex > -1 SelectElement(OSM\Marker(), OSM\EditMarkerIndex) - Protected Tile.Tile LatLon2XY(@OSM\Marker()\Location, @Marker) Marker\x + MouseX / OSM\TileSize Marker\y + MouseY / OSM\TileSize @@ -1055,8 +1054,8 @@ CompilerIf #PB_Compiler_IsMainFile CompilerEndIf ; IDE Options = PureBasic 5.42 LTS (Windows - x64) -; CursorPosition = 697 -; FirstLine = 683 +; CursorPosition = 883 +; FirstLine = 869 ; Folding = ------- ; EnableUnicode ; EnableThread