From 51db2d3f2cfddfb1c94de1085d130c817bcd953f Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sun, 2 Apr 2006 01:52:44 +0000 Subject: Update adds prboom's high resolution support, also makes the scaling for platforms w/ resolution less then 320x200 much nicer. IDoom's lookup table code has been removed. Also fixed a pallete bug. Some graphic errors are present in menu and status bar. Also updates some headers and output formatting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9418 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/doom/v_video.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/plugins/doom/v_video.c') diff --git a/apps/plugins/doom/v_video.c b/apps/plugins/doom/v_video.c index a7dbe84d6a..75ccc3ffda 100644 --- a/apps/plugins/doom/v_video.c +++ b/apps/plugins/doom/v_video.c @@ -44,7 +44,7 @@ #include "m_swap.h" #include "rockmacros.h" // Each screen is [SCREENWIDTH*SCREENHEIGHT]; -byte *screens[6]; +byte *screens[6] IBSS_ATTR; int dirtybox[4]; /* jff 4/24/98 initialize this at runtime */ @@ -428,22 +428,22 @@ 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 - if (flags & VPT_STRETCH) - if ((SCREENWIDTH==320) && (SCREENHEIGHT==200)) - flags &= ~VPT_STRETCH; +// // CPhipps - auto-no-stretch if not high-res +// if (flags & VPT_STRETCH) +// if ((SCREENWIDTH==320) && (SCREENHEIGHT==200)) +// flags &= ~VPT_STRETCH; // CPhipps - null translation pointer => no translation if (!trans) flags &= ~VPT_TRANS; - if (x<0 - ||x+SHORT(patch->width) > ((flags & VPT_STRETCH) ? 320 : SCREENWIDTH) - || y<0 - || y+SHORT(patch->height) > ((flags & VPT_STRETCH) ? 200 : SCREENHEIGHT)) - // 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 (x<0 +// ||x+SHORT(patch->width) > ((flags & VPT_STRETCH) ? 320 : SCREENWIDTH) +// || y<0 +// || y+SHORT(patch->height) > ((flags & VPT_STRETCH) ? 200 : SCREENHEIGHT)) +// // 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; -- cgit v1.2.3