diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2006-04-02 01:52:44 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2006-04-02 01:52:44 +0000 |
| commit | 51db2d3f2cfddfb1c94de1085d130c817bcd953f (patch) | |
| tree | a8452577070b7febf0ec640d2a065cd7e2c89847 /apps/plugins/doom/v_video.c | |
| parent | e61b079c26e5eaa12f403da6964ac20282df248e (diff) | |
| download | rockbox-51db2d3f2cfddfb1c94de1085d130c817bcd953f.zip rockbox-51db2d3f2cfddfb1c94de1085d130c817bcd953f.tar.gz rockbox-51db2d3f2cfddfb1c94de1085d130c817bcd953f.tar.bz2 rockbox-51db2d3f2cfddfb1c94de1085d130c817bcd953f.tar.xz | |
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
Diffstat (limited to 'apps/plugins/doom/v_video.c')
| -rw-r--r-- | apps/plugins/doom/v_video.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/doom/v_video.c b/apps/plugins/doom/v_video.c index a7dbe84..75ccc3f 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; |