Skip to content

Commit

Permalink
Fixed the resolution selector in Python.
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofra committed Aug 15, 2022
1 parent 3dc9f01 commit adf1d6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ def config_gui():

# apply preset if a combo entry was selected
if res_modified:
default_res_x = res_list[res_preset + 1][1]
default_res_y = res_list[res_preset + 1][2]
default_res_x = res_list[res_preset][0]
default_res_y = res_list[res_preset][1]
# end

# fullscreen_modified, default_fullscreen = hg.ImGuiCheckBox("Fullscreen", default_fullscreen)
fullscreen_modified, fullscreen_preset = hg.ImGuiCombo("Mode", fullscreen_preset, mode_list_str)

# apply preset if a combo entry was selected
if fullscreen_modified:
default_fullscreen = mode_list[fullscreen_preset + 1]
default_fullscreen = mode_list[fullscreen_preset]
# end

# Rendering settings
Expand Down

0 comments on commit adf1d6f

Please sign in to comment.