Fix win32 Update_rect()

This commit is contained in:
Thomas Bernard 2018-06-27 15:57:43 +02:00
parent 77f36a1f8e
commit 74cc365e8c

View File

@ -404,10 +404,10 @@ void Screen_FillRect(int x, int y, int w, int h, byte color)
void Update_rect(short x, short y, unsigned short width, unsigned short height)
{
RECT rect;
rect.left = x;
rect.top = y;
rect.right = x + width;
rect.bottom = y + height;
rect.left = x * Pixel_width;
rect.top = y * Pixel_height;
rect.right = (x + width) * Pixel_width;
rect.bottom = (y + height) * Pixel_height;
InvalidateRect(Win32_hwnd, &rect, TRUE);
}