Skip to content

Commit

Permalink
warn if on full desktop mode
Browse files Browse the repository at this point in the history
  • Loading branch information
goblinhack committed Feb 9, 2025
1 parent dec0047 commit 8657dd5
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/wid_cfg_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,23 @@ void wid_cfg_gfx_select(Gamep g)
wid_set_text(w, res);
wid_set_text_lhs(w, true);
}
if (! game_gfx_fullscreen_desktop_get(g)) {

if (game_gfx_fullscreen_desktop_get(g)) {
y_at++;
{
TRACE_AND_INDENT();
auto p = wid_cfg_gfx_window->wid_text_area->wid_text_area;
auto w = wid_new_square_button(g, p, "Notice");

point tl(1, y_at);
point br(width - 2, y_at);
wid_set_shape_none(w);
wid_set_pos(w, tl, br);
wid_set_text(w, "** Disable full desktop to change **");
wid_set_text_lhs(w, true);
}
y_at++;
} else {
{
TRACE_AND_INDENT();
auto p = wid_cfg_gfx_window->wid_text_area->wid_text_area;
Expand Down Expand Up @@ -498,7 +514,7 @@ void wid_cfg_gfx_select(Gamep g)
{
TRACE_AND_INDENT();
auto p = wid_cfg_gfx_window->wid_text_area->wid_text_area;
auto w = wid_new_square_button(g, p, "Fullscreen desktop");
auto w = wid_new_square_button(g, p, "Full desktop");

point tl(1, y_at);
point br(width / 2, y_at);
Expand Down

0 comments on commit 8657dd5

Please sign in to comment.