Fix black border clears

This commit is contained in:
Magnus Norddahl 2019-12-05 22:04:28 +01:00
parent e4bd2483e5
commit ab4f3ee0b1

View file

@ -300,13 +300,13 @@ void I_PolyPresentUnlock(int x, int y, int width, int height)
{ {
clearrects[count].x = x + width; clearrects[count].x = x + width;
clearrects[count].y = y; clearrects[count].y = y;
clearrects[count].x = ClientWidth - clearrects[count].x; clearrects[count].w = ClientWidth - clearrects[count].x;
clearrects[count].y = height - clearrects[count].y; clearrects[count].h = height;
count++; count++;
} }
if (count > 0) 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; SDL_Rect dstrect;
dstrect.x = x; dstrect.x = x;