Skip to content

Commit

Permalink
Now Applies The Setting On Boot
Browse files Browse the repository at this point in the history
  • Loading branch information
ds22x authored Jan 17, 2021
1 parent 366c9d5 commit ed441bf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,11 @@ static bool update_viewport(void)
else
vwidth = SMS_NTSC_OUT_WIDTH(vwidth);
}

if ((system_hw == SYSTEM_SMS || system_hw == SYSTEM_SMS2) && config.left_border)
{
bitmap.viewport.x = (config.overscan & 2) ? 7 : -8;
}

if (config.render && interlaced)
{
Expand Down Expand Up @@ -1901,7 +1906,6 @@ static void check_variables(bool first_run)
if (update_viewports)
{
bitmap.viewport.changed = 11;
}
if ((system_hw == SYSTEM_GG) && !config.gg_extra)
{
bitmap.viewport.x = (config.overscan & 2) ? 14 : -48;
Expand All @@ -1913,6 +1917,7 @@ static void check_variables(bool first_run)
else
{
bitmap.viewport.x = (config.overscan & 2) * 7 ;
}
}

/* Reinitialise frameskipping, if required */
Expand Down Expand Up @@ -3241,4 +3246,4 @@ void retro_run(void)
audio_cb(soundbuffer, audio_update(soundbuffer));
}

#undef CHUNKSIZE
#undef CHUNKSIZE

0 comments on commit ed441bf

Please sign in to comment.