mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(winraw_input.c) Fixed some typos and style nits
This commit is contained in:
parent
0d36cf2a4a
commit
9e1ad64e89
@ -341,7 +341,7 @@ static void winraw_update_mouse_state(winraw_input_t *wr,
|
||||
{
|
||||
POINT crs_pos;
|
||||
|
||||
/* used for fixing cordinates after switching resolutions */
|
||||
/* Used for fixing coordinates after switching resolutions */
|
||||
GetClientRect((HWND)video_driver_window_get(), &wr->prev_rect);
|
||||
|
||||
if (!EqualRect(&wr->active_rect, &wr->prev_rect))
|
||||
@ -349,12 +349,14 @@ static void winraw_update_mouse_state(winraw_input_t *wr,
|
||||
if (wr->rect_delay < 10 )
|
||||
{
|
||||
RARCH_LOG("[CRT][WINRAW]: Resize RECT delay for absolute co-ords - %d \n", wr->rect_delay);
|
||||
winraw_init_mouse_xy_mapping(wr); /* Tiggering a fewe times seens to fix the issue. forcing resize whihe resolution is changing */
|
||||
winraw_init_mouse_xy_mapping(wr); /* Triggering fewer times seems to fix the issue. Forcing resize while resolution is changing */
|
||||
wr->rect_delay ++;
|
||||
}else{
|
||||
}
|
||||
else
|
||||
{
|
||||
int bottom = wr->prev_rect.bottom;
|
||||
int right = wr->prev_rect.right;
|
||||
RARCH_LOG("[CRT][WINRAW]: Resizing RECT for absolute co-ords to match new resolution - %dx%d \n", right ,bottom);
|
||||
RARCH_LOG("[CRT][WINRAW]: Resizing RECT for absolute coordinates to match new resolution - %dx%d\n", right ,bottom);
|
||||
wr->active_rect = wr->prev_rect;
|
||||
winraw_init_mouse_xy_mapping(wr);
|
||||
wr->rect_delay = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user