summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/r_draw.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2006-04-03 00:28:13 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2006-04-03 00:28:13 +0000
commit9dde7b272ef9402e6a23b0aa5a88bdcc83be9df6 (patch)
treeba05635cd1af75a702764509343fc5631ef76d04 /apps/plugins/doom/r_draw.c
parentc16c727e5426406305b23039f49c2a4ae01562b0 (diff)
downloadrockbox-9dde7b272ef9402e6a23b0aa5a88bdcc83be9df6.tar.gz
rockbox-9dde7b272ef9402e6a23b0aa5a88bdcc83be9df6.zip
Fixes graphic errors in scaling code, note sure about the fix in hu_lib.c though. I havn't seen any corrupted text but it may still need a proper fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9445 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/r_draw.c')
-rw-r--r--apps/plugins/doom/r_draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/doom/r_draw.c b/apps/plugins/doom/r_draw.c
index f0b9d3300b..b6d84f0dff 100644
--- a/apps/plugins/doom/r_draw.c
+++ b/apps/plugins/doom/r_draw.c
@@ -630,7 +630,6 @@ void R_VideoErase(unsigned ofs, int count)
630 memcpy(screens[0]+ofs, screens[1]+ofs, count); // LFB copy. 630 memcpy(screens[0]+ofs, screens[1]+ofs, count); // LFB copy.
631} 631}
632 632
633
634// 633//
635// R_DrawViewBorder 634// R_DrawViewBorder
636// Draws the border around the view 635// Draws the border around the view
@@ -668,7 +667,7 @@ void R_DrawViewBorder(void)
668 } 667 }
669 668
670 if ( viewheight >= ( SCREENHEIGHT - ST_SCALED_HEIGHT )) 669 if ( viewheight >= ( SCREENHEIGHT - ST_SCALED_HEIGHT ))
671 return; // if high-res, donŽt go any further! 670 return; // if high-res, don't go any further!
672 671
673 top = ((SCREENHEIGHT-ST_SCALED_HEIGHT)-viewheight)/2; 672 top = ((SCREENHEIGHT-ST_SCALED_HEIGHT)-viewheight)/2;
674 side = (SCREENWIDTH-scaledviewwidth)/2; 673 side = (SCREENWIDTH-scaledviewwidth)/2;