summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/doom/v_video.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/doom/v_video.c b/apps/plugins/doom/v_video.c
index 95c396ecf4..167316beae 100644
--- a/apps/plugins/doom/v_video.c
+++ b/apps/plugins/doom/v_video.c
@@ -417,7 +417,7 @@ void V_DrawMemPatch(int x, int y, int scrn, const patch_t *patch,
417 y -= SHORT(patch->topoffset); 417 y -= SHORT(patch->topoffset);
418 x -= SHORT(patch->leftoffset); 418 x -= SHORT(patch->leftoffset);
419 419
420// // CPhipps - auto-no-stretch if not high-res 420 // CPhipps - auto-no-stretch if not high-res
421 if (flags & VPT_STRETCH) 421 if (flags & VPT_STRETCH)
422 if ((SCREENWIDTH==320) && (SCREENHEIGHT==200)) 422 if ((SCREENWIDTH==320) && (SCREENHEIGHT==200))
423 flags &= ~VPT_STRETCH; 423 flags &= ~VPT_STRETCH;
@@ -430,9 +430,12 @@ void V_DrawMemPatch(int x, int y, int scrn, const patch_t *patch,
430 ||x+SHORT(patch->width) > ((flags & VPT_STRETCH) ? 320 : SCREENWIDTH) 430 ||x+SHORT(patch->width) > ((flags & VPT_STRETCH) ? 320 : SCREENWIDTH)
431 || y<0 431 || y<0
432 || y+SHORT(patch->height) > ((flags & VPT_STRETCH) ? 200 : SCREENHEIGHT)) 432 || y+SHORT(patch->height) > ((flags & VPT_STRETCH) ? 200 : SCREENHEIGHT))
433 {
434 rb->splash(HZ*2, true, "This wad does not follow standard doom graphics!");
433 // killough 1/19/98: improved error message: 435 // killough 1/19/98: improved error message:
434 I_Error("V_DrawMemPatch: Patch (%d,%d)-(%d,%d) exceeds LFB Bad V_DrawMemPatch (flags=%u)", 436 I_Error("V_DrawMemPatch: Patch (%d,%d)-(%d,%d) exceeds LFB Bad V_DrawMemPatch (flags=%u)",
435 x, y, x+SHORT(patch->width), y+SHORT(patch->height), flags); 437 x, y, x+SHORT(patch->width), y+SHORT(patch->height), flags);
438 }
436 439
437 if (!(flags & VPT_STRETCH)) { 440 if (!(flags & VPT_STRETCH)) {
438 unsigned int col; 441 unsigned int col;