Skip to content

Commit

Permalink
Add missing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanaobrien committed Jul 30, 2024
1 parent fefca40 commit a725c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gfx/drivers/gl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,7 @@ static void gl2_set_viewport(gl2_t *gl,
{
settings_t *settings = config_get_ptr();
float device_aspect = (float) viewport_width / (float)viewport_height;
bool video_top_portrait_viewport = settings->bools.video_top_portrait_viewport;

if (gl->ctx_driver->translate_aspect)
device_aspect = gl->ctx_driver->translate_aspect(
Expand Down
1 change: 1 addition & 0 deletions gfx/drivers/gl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,7 @@ static void gl3_set_viewport(gl3_t *gl,
settings_t *settings = config_get_ptr();
float device_aspect = (float)viewport_width / viewport_height;
bool video_scale_integer = settings->bools.video_scale_integer;
bool video_top_portrait_viewport = settings->bools.video_top_portrait_viewport;

if (gl->ctx_driver->translate_aspect)
device_aspect = gl->ctx_driver->translate_aspect(
Expand Down

0 comments on commit a725c1b

Please sign in to comment.