Skip to content

Commit

Permalink
Fix black border clears
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Dec 5, 2019
1 parent e4bd248 commit ab4f3ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/posix/sdl/sdlglvideo.cpp
Expand Up @@ -300,13 +300,13 @@ void I_PolyPresentUnlock(int x, int y, int width, int height)
{
clearrects[count].x = x + width;
clearrects[count].y = y;
clearrects[count].x = ClientWidth - clearrects[count].x;
clearrects[count].y = height - clearrects[count].y;
clearrects[count].w = ClientWidth - clearrects[count].x;
clearrects[count].h = height;
count++;
}

if (count > 0)
SDL_FillRects(windowsurface, clearrects, count, 0xff000000);
SDL_FillRects(windowsurface, clearrects, count, SDL_MapRGBA(windowsurface->format, 0, 0, 0, 255));

SDL_Rect dstrect;
dstrect.x = x;
Expand Down

0 comments on commit ab4f3ee

Please sign in to comment.