Skip to content

Commit 027d5d2

Browse files
committed
Fix mouse Widescreen Viewport
1 parent 052e287 commit 027d5d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/video/ogc/SDL_ogcmouse.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ void OGC_draw_cursor(_THIS)
212212

213213
#ifdef __wii__
214214
if (CONF_GetAspectRatio() == CONF_ASPECT_16_9)
215-
OGC_set_viewport(0, 0, screen_w, screen_h, ((int)(screen_h * 16.0f / 9.0f)) + 1);
215+
// Calculations to allow the mouse
216+
OGC_set_viewport(0, 0, screen_w > 640 ? 640 : screen_w, screen_h, ((int)(screen_h * 16.0f / 9.0f)) + 1);
216217
else
217218
#endif
218219
OGC_set_viewport(0, 0, screen_w, screen_h, screen_w);

0 commit comments

Comments
 (0)