summaryrefslogtreecommitdiff
path: root/textscreen/txt_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_sdl.c')
-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 71736720..a0cbe3d6 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -289,10 +289,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)
{