mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
v_video.c/h
cleanup, error message corrections (#1246)
This commit is contained in:
parent
02d4fde2a5
commit
9ede0ab471
@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
// Each screen is [SCREENWIDTH*SCREENHEIGHT];
|
// Each screen is [SCREENWIDTH*SCREENHEIGHT];
|
||||||
byte *screens[5];
|
byte *screens[5];
|
||||||
int dirtybox[4];
|
|
||||||
|
|
||||||
//jff 2/18/98 palette color ranges for translation
|
//jff 2/18/98 palette color ranges for translation
|
||||||
//jff 4/24/98 now pointers set to predefined lumps to allow overloading
|
//jff 4/24/98 now pointers set to predefined lumps to allow overloading
|
||||||
@ -830,7 +829,7 @@ void V_GetBlock(int x, int y, int scrn, int width, int height, byte *dest)
|
|||||||
|| y<0
|
|| y<0
|
||||||
|| y+height>SCREENHEIGHT
|
|| y+height>SCREENHEIGHT
|
||||||
|| (unsigned)scrn>4 )
|
|| (unsigned)scrn>4 )
|
||||||
I_Error ("Bad V_DrawBlock");
|
I_Error ("Bad V_GetBlock");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (hires) // killough 11/98: hires support
|
if (hires) // killough 11/98: hires support
|
||||||
@ -857,7 +856,7 @@ void V_PutBlock(int x, int y, int scrn, int width, int height, byte *src)
|
|||||||
|| y<0
|
|| y<0
|
||||||
|| y+height>SCREENHEIGHT
|
|| y+height>SCREENHEIGHT
|
||||||
|| (unsigned)scrn>4 )
|
|| (unsigned)scrn>4 )
|
||||||
I_Error ("Bad V_DrawBlock");
|
I_Error ("Bad V_PutBlock");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (hires)
|
if (hires)
|
||||||
|
@ -85,7 +85,6 @@ typedef enum
|
|||||||
//jff 1/16/98 end palette color range additions
|
//jff 1/16/98 end palette color range additions
|
||||||
|
|
||||||
extern byte *screens[5];
|
extern byte *screens[5];
|
||||||
extern int dirtybox[4];
|
|
||||||
extern byte gammatable[5][256];
|
extern byte gammatable[5][256];
|
||||||
|
|
||||||
//jff 4/24/98 loads color translation lumps
|
//jff 4/24/98 loads color translation lumps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user