From 9ede0ab4718c0b27951bcf80c48d0f6a163ec0ca Mon Sep 17 00:00:00 2001 From: Alaux <73968015+MrAlaux@users.noreply.github.com> Date: Wed, 1 Nov 2023 06:30:02 -0300 Subject: [PATCH] `v_video.c/h` cleanup, error message corrections (#1246) --- src/v_video.c | 5 ++--- src/v_video.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/v_video.c b/src/v_video.c index ea91cd6c..da419994 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -34,7 +34,6 @@ // Each screen is [SCREENWIDTH*SCREENHEIGHT]; byte *screens[5]; -int dirtybox[4]; //jff 2/18/98 palette color ranges for translation //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+height>SCREENHEIGHT || (unsigned)scrn>4 ) - I_Error ("Bad V_DrawBlock"); + I_Error ("Bad V_GetBlock"); #endif 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+height>SCREENHEIGHT || (unsigned)scrn>4 ) - I_Error ("Bad V_DrawBlock"); + I_Error ("Bad V_PutBlock"); #endif if (hires) diff --git a/src/v_video.h b/src/v_video.h index ceb42c01..1fe1dff0 100644 --- a/src/v_video.h +++ b/src/v_video.h @@ -85,7 +85,6 @@ typedef enum //jff 1/16/98 end palette color range additions extern byte *screens[5]; -extern int dirtybox[4]; extern byte gammatable[5][256]; //jff 4/24/98 loads color translation lumps