From e2e09d31e72bfc03dee189b1eec5c3d9c12f4a9b Mon Sep 17 00:00:00 2001 From: gewlitys Date: Sat, 8 Mar 2003 19:18:49 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/process.c | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/sc2/src/sc2code/process.c b/sc2/src/sc2code/process.c index 03c2c005c..3226b9444 100644 --- a/sc2/src/sc2code/process.c +++ b/sc2/src/sc2code/process.c @@ -19,8 +19,6 @@ #include "starcon.h" #include "libs/graphics/gfx_common.h" -#define GSCALE_SHIFT 2 // controls the number of discrete scaling steps - COUNT DisplayFreeList; PRIMITIVE DisplayArray[MAX_DISPLAY_PRIMS]; extern POINT SpaceOrg; @@ -1092,24 +1090,24 @@ RedrawQueue (BOOLEAN clear) SetContext (SpaceContext); if (LOBYTE (GLOBAL (CurrentActivity)) == SUPER_MELEE - || !(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD))) + || !(GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_LOAD))) { BYTE skip_frames; if ((skip_frames = HIBYTE (nth_frame)) != (BYTE)~0 - && (skip_frames == 0 || (--nth_frame & 0x00FF) == 0)) + && (skip_frames == 0 || (--nth_frame & 0x00FF) == 0)) { nth_frame += skip_frames; -if (clear) - ClearDrawable (); // this is for BATCH_BUILD_PAGE effect, but not scaled by SetGraphicScale -{ - COUNT index, scale; - - CALC_ZOOM_STUFF (&index, &scale); - SetGraphicScale ((scale >> GSCALE_SHIFT) << GSCALE_SHIFT); -} + if (clear) + ClearDrawable (); // this is for BATCH_BUILD_PAGE effect, but not scaled by SetGraphicScale + { + COUNT index, scale; + + CALC_ZOOM_STUFF (&index, &scale); + SetGraphicScale (scale); + } DrawBatch (DisplayArray, DisplayLinks, 0);//BATCH_BUILD_PAGE); -SetGraphicScale (0); + SetGraphicScale (0); } if (num_sounds > 0)