From 74cc365e8cb418d2c9858d9b21021f1612b07183 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 27 Jun 2018 15:57:43 +0200 Subject: [PATCH] Fix win32 Update_rect() --- src/win32screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/win32screen.c b/src/win32screen.c index a14da75e..1ef5a67f 100644 --- a/src/win32screen.c +++ b/src/win32screen.c @@ -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); }