DEADSOFTWARE

render: move textures loaders to render
[d2df-sdl.git] / src / game / opengl / r_panel.pas
index e2c706e18bd74aade01faf3e562208fa707cc4c2..a8446312d03a6a6d66180ae16bf656de4e14eedc 100644 (file)
@@ -27,8 +27,8 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
-    e_graphics,
-    g_basic, g_textures
+    r_graphics, g_options, r_animations, r_textures,
+    g_base, g_basic
   ;
 
   // TODO: remove WITH operator
@@ -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