Skip to content

Commit

Permalink
one more try
Browse files Browse the repository at this point in the history
the min for this is not the min variable
  • Loading branch information
bradallred committed Apr 20, 2018
1 parent 14db1d4 commit 6ea1acc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemrb/plugins/SDLVideo/SDL12Video.cpp
Expand Up @@ -423,7 +423,7 @@ void SDL12VideoDriver::DrawHLine(short x1, short y, short x2, const Color& color
short max = min + screenClip.w - 1;
x1 = Clamp(x1, min, max);
x2 = Clamp(x2, min, max);
y = Clamp<short>(y, screenClip.y, min + screenClip.h - 1);
y = Clamp<short>(y, screenClip.y, screenClip.y + screenClip.h - 1);

std::vector<SDL_Point> points;
for (; x1 <= x2 ; x1++ )
Expand All @@ -444,7 +444,7 @@ void SDL12VideoDriver::DrawVLine(short x, short y1, short y2, const Color& color
short max = min + screenClip.h - 1;
y1 = Clamp(y1, min, max);
y2 = Clamp(y2, min, max);
x = Clamp<short>(x, screenClip.x, min + screenClip.w - 1);
x = Clamp<short>(x, screenClip.x, screenClip.x + screenClip.w - 1);

std::vector<SDL_Point> points;
for (; y1 <= y2 ; y1++ )
Expand Down

0 comments on commit 6ea1acc

Please sign in to comment.