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
+1
View File
@@ -34,6 +34,7 @@ int main(int argc, char *argv[])
SDL_Init(SDL_INIT_VIDEO);
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear");
#ifdef __EMSCRIPTEN__
// Stop SDL from calling emscripten_sleep() in functions that are called
// indirectly, which does not work with ASYNCIFY_IGNORE_INDIRECT=1. For