mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-29 18:38:13 +03:00
Use non-square pixels for Gakuen Senki
Stretch 512 horizontal pixels to 582 pixels. This is the same pixel aspect ratio used by WebMSX. Also set SDL_HINT_RENDER_SCALE_QUALITY to "linear", to improve the scaling quality.
This commit is contained in:
@@ -45,8 +45,8 @@ void NACT::pump_events()
|
||||
break;
|
||||
|
||||
case SDL_MOUSEMOTION:
|
||||
mousex = e.motion.x;
|
||||
mousey = e.motion.y;
|
||||
mousex = e.motion.x * ags->screen_width / ags->window_width;
|
||||
mousey = e.motion.y * ags->screen_height / ags->window_height;
|
||||
break;
|
||||
|
||||
case SDL_FINGERDOWN:
|
||||
|
||||
Reference in New Issue
Block a user