Some slight formatting
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
47fbf3ece7
commit
2b2db48588
1 changed files with 6 additions and 1 deletions
|
@ -107,7 +107,8 @@ void quit(Fl_Widget*, void*){
|
||||||
std::exit(0);
|
std::exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void activatejoy(Fl_Widget*, void*){
|
void activatejoy(Fl_Widget*, void*)
|
||||||
|
{
|
||||||
if(joystuffcontainer->active()){
|
if(joystuffcontainer->active()){
|
||||||
joystuffcontainer->deactivate();
|
joystuffcontainer->deactivate();
|
||||||
} else {
|
} else {
|
||||||
|
@ -166,6 +167,7 @@ void write_Config(Fl_Widget*, void*){
|
||||||
fd.close();
|
fd.close();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char* argv[]){
|
int main(int argc, char* argv[]){
|
||||||
strcpy(config_path, argv[0]);
|
strcpy(config_path, argv[0]);
|
||||||
|
|
||||||
|
@ -216,6 +218,7 @@ int main(int argc, char* argv[]){
|
||||||
{"Fullscreen 32-bit"},
|
{"Fullscreen 32-bit"},
|
||||||
{0}};
|
{0}};
|
||||||
displaychoice->menu(screens);
|
displaychoice->menu(screens);
|
||||||
|
|
||||||
joychoice = new Fl_Check_Button(205, 100, 185, 20, "Use Joypad");
|
joychoice = new Fl_Check_Button(205, 100, 185, 20, "Use Joypad");
|
||||||
joychoice->callback(&activatejoy);
|
joychoice->callback(&activatejoy);
|
||||||
|
|
||||||
|
@ -258,8 +261,10 @@ int main(int argc, char* argv[]){
|
||||||
|
|
||||||
joystuffcontainer->end();
|
joystuffcontainer->end();
|
||||||
|
|
||||||
|
|
||||||
Fl_Button *okaybutton = new Fl_Button(10, 340, 185, 30, "Okay");
|
Fl_Button *okaybutton = new Fl_Button(10, 340, 185, 30, "Okay");
|
||||||
okaybutton->callback(&write_Config);
|
okaybutton->callback(&write_Config);
|
||||||
|
|
||||||
Fl_Button *cancelbutton = new Fl_Button(205, 340, 185, 30, "Cancel");
|
Fl_Button *cancelbutton = new Fl_Button(205, 340, 185, 30, "Cancel");
|
||||||
cancelbutton->callback(&quit);
|
cancelbutton->callback(&quit);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue