From 348fab33a8d78cbe805fbb3a72fd5157d53a6ab3 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 13 Feb 2024 20:26:13 +0100 Subject: [PATCH] overlays: fix raw mouse debug overlay pos type --- rpcs3/Input/raw_mouse_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Input/raw_mouse_handler.cpp b/rpcs3/Input/raw_mouse_handler.cpp index 0af58755ae..1899a79d96 100644 --- a/rpcs3/Input/raw_mouse_handler.cpp +++ b/rpcs3/Input/raw_mouse_handler.cpp @@ -15,8 +15,8 @@ #include "Emu/RSX/Overlays/overlay_cursor.h" static inline void draw_overlay_cursor(u32 index, s32 x_pos, s32 y_pos, s32 x_max, s32 y_max) { - const u16 x = static_cast(x_pos / (x_max / static_cast(rsx::overlays::overlay::virtual_width))); - const u16 y = static_cast(y_pos / (y_max / static_cast(rsx::overlays::overlay::virtual_height))); + const s16 x = static_cast(x_pos / (x_max / static_cast(rsx::overlays::overlay::virtual_width))); + const s16 y = static_cast(y_pos / (y_max / static_cast(rsx::overlays::overlay::virtual_height))); const color4f color = { 1.0f, 0.0f, 0.0f, 1.0f };