MCPcopy Create free account
hub / github.com/TurningWheel/Barony / buttonSettingsAccept

Function buttonSettingsAccept

src/menu.cpp:11223–11243  ·  view source on GitHub ↗

settings accept button

Source from the content-addressed store, hash-verified

11221
11222// settings accept button
11223void buttonSettingsAccept(button_t* my)
11224{
11225 applySettings();
11226
11227 if ( resolutionChanged )
11228 {
11229 buttonCloseSettingsSubwindow(my);
11230 resolutionChanged = false;
11231 list_FreeAll(&button_l);
11232 deleteallbuttons = true;
11233 openConfirmResolutionWindow();
11234 }
11235 else
11236 {
11237 // we need to reposition the settings window now.
11238 buttonCloseSubwindow(my);
11239 list_FreeAll(&button_l);
11240 deleteallbuttons = true;
11241 openSettingsWindow();
11242 }
11243}
11244
11245// settings okay button
11246void buttonSettingsOK(button_t* my)

Callers 1

buttonSettingsOKFunction · 0.85

Calls 6

applySettingsFunction · 0.85
list_FreeAllFunction · 0.85
openSettingsWindowFunction · 0.85
buttonCloseSubwindowFunction · 0.70

Tested by

no test coverage detected