DEADSOFTWARE

render: separate animation drawing from game code
[d2df-sdl.git] / src / game / opengl / r_panel.pas
index 5160510d65026345c4a4b07ca1e4b956e21c9604..c9de77c350ddd6c333686c092f056b1e03c1fa8c 100644 (file)
@@ -27,7 +27,7 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
-    r_graphics, g_options,
+    r_graphics, g_options, r_animations,
     g_base, g_basic, g_textures
   ;
 
@@ -46,7 +46,7 @@ implementation
             Exit;
           for xx := 0 to Width div TextureWidth - 1 do
             for yy := 0 to Height div TextureHeight - 1 do
-              TextureIDs[FCurTexture].AnTex.Draw(X + xx * TextureWidth, Y + yy * TextureHeight, TMirrorType.None);
+              r_Animation_Draw(TextureIDs[FCurTexture].AnTex, X + xx * TextureWidth, Y + yy * TextureHeight, TMirrorType.None);
         end
         else
         begin