diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2006-04-17 19:54:18 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2006-04-17 19:54:18 +0000 |
| commit | 6b90467f698fb5611b6cfe3ff2c9b06bef1cb248 (patch) | |
| tree | ed5aff248d48b68cbda33fa1f01a8ac198fbb10f /apps/plugins | |
| parent | 08b417f149f061f7923d4acc2a950bcbaa49b6fa (diff) | |
| download | rockbox-6b90467f698fb5611b6cfe3ff2c9b06bef1cb248.zip rockbox-6b90467f698fb5611b6cfe3ff2c9b06bef1cb248.tar.gz rockbox-6b90467f698fb5611b6cfe3ff2c9b06bef1cb248.tar.bz2 rockbox-6b90467f698fb5611b6cfe3ff2c9b06bef1cb248.tar.xz | |
Add better error message for messed up graphics.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9707 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/doom/v_video.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/doom/v_video.c b/apps/plugins/doom/v_video.c index 95c396e..167316b 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, y -= SHORT(patch->topoffset); x -= SHORT(patch->leftoffset); -// // CPhipps - auto-no-stretch if not high-res + // CPhipps - auto-no-stretch if not high-res if (flags & VPT_STRETCH) if ((SCREENWIDTH==320) && (SCREENHEIGHT==200)) flags &= ~VPT_STRETCH; @@ -430,9 +430,12 @@ void V_DrawMemPatch(int x, int y, int scrn, const patch_t *patch, ||x+SHORT(patch->width) > ((flags & VPT_STRETCH) ? 320 : SCREENWIDTH) || y<0 || y+SHORT(patch->height) > ((flags & VPT_STRETCH) ? 200 : SCREENHEIGHT)) + { + rb->splash(HZ*2, true, "This wad does not follow standard doom graphics!"); // killough 1/19/98: improved error message: I_Error("V_DrawMemPatch: Patch (%d,%d)-(%d,%d) exceeds LFB Bad V_DrawMemPatch (flags=%u)", x, y, x+SHORT(patch->width), y+SHORT(patch->height), flags); + } if (!(flags & VPT_STRETCH)) { unsigned int col; |