From 1b903ffdc6cfcb2719ea25dfb6b8943bcbecb9db Mon Sep 17 00:00:00 2001 From: djes Date: Fri, 9 Jun 2017 16:58:58 +0200 Subject: [PATCH] One more lil bugfix --- PBMap.pb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PBMap.pb b/PBMap.pb index 5cd659d..3e1b8d8 100644 --- a/PBMap.pb +++ b/PBMap.pb @@ -1246,10 +1246,7 @@ Module PBMap If PBMap\ThreadsNB < PBMap\Options\MaxThreads Protected *NewTile.Tile = AllocateMemory(SizeOf(Tile)) If *NewTile - With *NewTile - *timg\Tile = *NewTile ; There's now a loading thread - *timg\Alpha = 0 - ; *timg\nImage = -1 + With *NewTile ; New tile parameters \key = key \URL = URL @@ -1258,6 +1255,9 @@ Module PBMap \Time = ElapsedMilliseconds() \GetImageThread = CreateThread(@GetImageThread(), *NewTile) If \GetImageThread + *timg\Tile = *NewTile ; There's now a loading thread + *timg\Alpha = 0 + ; *timg\nImage = 0 MyDebug(" Creating get image thread nb " + Str(\GetImageThread) + " to get " + CacheFile, 3) PBMap\ThreadsNB + 1 Else @@ -2837,8 +2837,8 @@ CompilerIf #PB_Compiler_IsMainFile CompilerEndIf ; IDE Options = PureBasic 5.60 (Windows - x64) -; CursorPosition = 1241 -; FirstLine = 1233 +; CursorPosition = 1259 +; FirstLine = 1229 ; Folding = ------------------- ; EnableThread ; EnableXP