diff --git a/lib/ivis_common/ivisdef.h b/lib/ivis_common/ivisdef.h index b24a6f7f0..82e7a8f0d 100644 --- a/lib/ivis_common/ivisdef.h +++ b/lib/ivis_common/ivisdef.h @@ -32,20 +32,6 @@ #include "lib/framework/frame.h" #include "pietypes.h" - - -/***************************************************************************/ -/***************************************************************************/ -/* - * Global Definitions - */ -/***************************************************************************/ -#define iV_SCANTABLE_MAX 1024 - -// texture animation defines -#define iV_IMD_ANIM_FRAMES 8 - - //************************************************************************* // // screen surface structure @@ -62,7 +48,6 @@ typedef struct _iSurface { iClip clip; UBYTE *buffer; - Sint32 scantable[iV_SCANTABLE_MAX]; // currently uses 4k per structure (!) int width; int height; diff --git a/lib/ivis_opengl/rendmode.c b/lib/ivis_opengl/rendmode.c index 297589f0f..83895338a 100644 --- a/lib/ivis_opengl/rendmode.c +++ b/lib/ivis_opengl/rendmode.c @@ -38,7 +38,6 @@ iSurface *psRendSurface; iSurface *iV_SurfaceCreate(Uint32 flags, int width, int height, int xp, int yp, UBYTE *buffer) { iSurface *s = malloc(sizeof(iSurface)); - int i; assert(buffer!=NULL); // on playstation this MUST be null @@ -56,13 +55,7 @@ iSurface *iV_SurfaceCreate(Uint32 flags, int width, int height, int xp, int yp, s->width = width; s->height = height; s->size = width * height; - s->buffer = buffer; - for (i=0; iscantable[i] = i * width; - } - s->clip.left = 0; s->clip.right = width-1; s->clip.top = 0; diff --git a/src/intelmap.c b/src/intelmap.c index 18c840670..23276fff0 100644 --- a/src/intelmap.c +++ b/src/intelmap.c @@ -1327,8 +1327,7 @@ void intDisplayFLICView(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, PIELIG seq_RenderVideoToBuffer(NULL, psViewResearch->sequenceName, gameTime2, SEQUENCE_HOLD); //download to screen now - seq_BlitBufferToScreen((SBYTE *)rendSurface.buffer, rendSurface.scantable[1], - x0, y0); + seq_BlitBufferToScreen((SBYTE *)rendSurface.buffer, x0, y0); CloseButtonRender(); }