SDL blit wraps at 16,384 - not the first time that routine has disappointed us.
authornemo
Wed, 13 Apr 2016 17:59:13 -0400
changeset 11654 1fd1525653d8
parent 11653 89fc5e6ccc76
child 11655 573e79db6688
SDL blit wraps at 16,384 - not the first time that routine has disappointed us.
hedgewars/uLand.pas
--- a/hedgewars/uLand.pas	Wed Apr 13 21:42:00 2016 +0900
+++ b/hedgewars/uLand.pas	Wed Apr 13 17:59:13 2016 -0400
@@ -33,7 +33,7 @@
 uses uConsole, uStore, uRandom, uLandObjects, uIO, uLandTexture, SysUtils,
      uVariables, uUtils, uCommands, adler32, uDebug, uLandPainted, uTextures,
      uLandGenMaze, uPhysFSLayer, uScript, uLandGenPerlin,
-     uLandGenTemplateBased, uLandUtils;
+     uLandGenTemplateBased, uLandUtils, uRenderUtils;
 
 var digest: shortstring;
     maskOnly: boolean;
@@ -194,7 +194,8 @@
         r.x:= 0;
         while r.x < LAND_WIDTH do
             begin
-            SDL_UpperBlit(tmpsurf, nil, Surface, @r);
+            copyToXY(tmpsurf, Surface, r.x, r.y);
+            //SDL_UpperBlit(tmpsurf, nil, Surface, @r);
             inc(r.x, tmpsurf^.w)
             end;
         inc(y, tmpsurf^.h);