Removed scale step reduction as surface caching now works fine w/o it

anyway.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@878 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-03-08 19:18:49 +00:00
parent d490e09467
commit e2e09d31e7
+5 -7
View File
@@ -19,8 +19,6 @@
#include "starcon.h" #include "starcon.h"
#include "libs/graphics/gfx_common.h" #include "libs/graphics/gfx_common.h"
#define GSCALE_SHIFT 2 // controls the number of discrete scaling steps
COUNT DisplayFreeList; COUNT DisplayFreeList;
PRIMITIVE DisplayArray[MAX_DISPLAY_PRIMS]; PRIMITIVE DisplayArray[MAX_DISPLAY_PRIMS];
extern POINT SpaceOrg; extern POINT SpaceOrg;
@@ -1100,16 +1098,16 @@ RedrawQueue (BOOLEAN clear)
&& (skip_frames == 0 || (--nth_frame & 0x00FF) == 0)) && (skip_frames == 0 || (--nth_frame & 0x00FF) == 0))
{ {
nth_frame += skip_frames; nth_frame += skip_frames;
if (clear) if (clear)
ClearDrawable (); // this is for BATCH_BUILD_PAGE effect, but not scaled by SetGraphicScale ClearDrawable (); // this is for BATCH_BUILD_PAGE effect, but not scaled by SetGraphicScale
{ {
COUNT index, scale; COUNT index, scale;
CALC_ZOOM_STUFF (&index, &scale); CALC_ZOOM_STUFF (&index, &scale);
SetGraphicScale ((scale >> GSCALE_SHIFT) << GSCALE_SHIFT); SetGraphicScale (scale);
} }
DrawBatch (DisplayArray, DisplayLinks, 0);//BATCH_BUILD_PAGE); DrawBatch (DisplayArray, DisplayLinks, 0);//BATCH_BUILD_PAGE);
SetGraphicScale (0); SetGraphicScale (0);
} }
if (num_sounds > 0) if (num_sounds > 0)