equal
deleted
inserted
replaced
71 frontendEffects = settings.value("video/frontendeffects", true).toBool(); |
71 frontendEffects = settings.value("video/frontendeffects", true).toBool(); |
72 |
72 |
73 ui.setupUi(this); |
73 ui.setupUi(this); |
74 |
74 |
75 CustomizePalettes(); |
75 CustomizePalettes(); |
76 |
76 |
77 ui.pageOptions->CBResolution->addItems(sdli.getResolutions()); |
77 sdli = new SDLInteraction(ui.pageOptions->CBHardwareSound->isChecked()); |
|
78 |
|
79 ui.pageOptions->CBResolution->addItems(sdli->getResolutions()); |
78 |
80 |
79 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
81 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
80 |
82 |
81 namegen = new HWNamegen(); |
83 namegen = new HWNamegen(); |
82 |
84 |
874 } |
876 } |
875 |
877 |
876 void HWForm::Music(bool checked) |
878 void HWForm::Music(bool checked) |
877 { |
879 { |
878 if (checked) |
880 if (checked) |
879 sdli.StartMusic(ui.pageOptions->CBHardwareSound->isChecked()); |
881 sdli->StartMusic(); |
880 else |
882 else |
881 sdli.StopMusic(); |
883 sdli->StopMusic(); |
882 } |
884 } |
883 |
885 |
884 void HWForm::NetGameChangeStatus(bool isMaster) |
886 void HWForm::NetGameChangeStatus(bool isMaster) |
885 { |
887 { |
886 if (isMaster) |
888 if (isMaster) |