summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
authorSimon Howard2009-12-12 01:20:49 +0000
committerSimon Howard2009-12-12 01:20:49 +0000
commit7972eefbf43cc2d68c958e4fa5ea93e14b12b7b2 (patch)
tree9d3163cda4ecb344e5e1930d64d51b9f7bce6f00 /textscreen
parentc09be2cdb7668f9f5246eaa3e7de060db94b432b (diff)
downloadchocolate-doom-7972eefbf43cc2d68c958e4fa5ea93e14b12b7b2.tar.gz
chocolate-doom-7972eefbf43cc2d68c958e4fa5ea93e14b12b7b2.tar.bz2
chocolate-doom-7972eefbf43cc2d68c958e4fa5ea93e14b12b7b2.zip
Fix textscreen black border bug.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1745
Diffstat (limited to 'textscreen')
-rw-r--r--textscreen/txt_sdl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index cd7dd77d..0df9fc93 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -285,10 +285,10 @@ void TXT_UpdateScreenArea(int x, int y, int w, int h)
int x_end;
int y_end;
- x_end = LimitToRange(x + w, 0, TXT_SCREEN_W - 1);
- y_end = LimitToRange(y + h, 0, TXT_SCREEN_H - 1);
- x = LimitToRange(x, 0, TXT_SCREEN_W - 1);
- y = LimitToRange(y, 0, TXT_SCREEN_H - 1);
+ x_end = LimitToRange(x + w, 0, TXT_SCREEN_W);
+ y_end = LimitToRange(y + h, 0, TXT_SCREEN_H);
+ x = LimitToRange(x, 0, TXT_SCREEN_W);
+ y = LimitToRange(y, 0, TXT_SCREEN_H);
for (y1=y; y1<y_end; ++y1)
{