Fix win32 Update_rect()
This commit is contained in:
parent
77f36a1f8e
commit
74cc365e8c
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user