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:
kichikuou
2023-04-09 18:23:39 +09:00
parent 24224e0d2b
commit ec1dfbffcf
4 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -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: