Skip to content
Snippets Groups Projects
Commit ef511bd9 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix initial scaling and initial scaling mode in SDL mode

This isn't great, but it works (on FreeBSD)
parent fc938bb2
No related branches found
No related tags found
No related merge requests found
Pipeline #7821 passed
......@@ -411,6 +411,15 @@ static int sdl_init_mode(int mode, bool init)
/* Called from main thread only (Passes Event) */
int sdl_init(int mode)
{
load_vmode(&vstat, ciolib_initial_mode);
if (vstat.scaling < 1.0)
vstat.scaling = ciolib_initial_scaling;
if (vstat.scaling < 1.0)
vstat.scaling = 1.0;
// TODO: This is gross, why do we need it?
vstat.winwidth = vstat.scrnwidth * vstat.scaling;
vstat.winheight = vstat.scrnheight * vstat.scaling;
internal_scaling = ciolib_initial_scaling_type == CIOLIB_SCALING_INTERNAL;
bitmap_drv_init(sdl_drawrect, sdl_flush);
if(mode==CIOLIB_MODE_SDL_FULLSCREEN) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment