mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Revert "Fix win32 startup crashes due to restructured PDCurses initialization"
This reverts commit 9fa3f521ac
.
This commit is contained in:
parent
9fa3f521ac
commit
6fcd248728
@ -153,8 +153,8 @@ void App::InitCurses() {
|
|||||||
PDC_set_function_key(FUNCTION_KEY_SHUT_DOWN, 4);
|
PDC_set_function_key(FUNCTION_KEY_SHUT_DOWN, 4);
|
||||||
#ifdef PDCURSES_WINGUI
|
#ifdef PDCURSES_WINGUI
|
||||||
PDC_set_default_menu_visibility(0);
|
PDC_set_default_menu_visibility(0);
|
||||||
|
PDC_set_title(this->appTitle.c_str());
|
||||||
PDC_set_color_intensify_enabled(false);
|
PDC_set_color_intensify_enabled(false);
|
||||||
this->SetTitle(this->appTitle);
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -187,8 +187,6 @@ void App::InitCurses() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this->initialized = true;
|
this->initialized = true;
|
||||||
|
|
||||||
this->SetTitle(this->appTitle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::SetKeyHandler(KeyHandler handler) {
|
void App::SetKeyHandler(KeyHandler handler) {
|
||||||
@ -269,9 +267,6 @@ void App::SetDefaultMenuVisibility(bool visible) {
|
|||||||
|
|
||||||
void App::SetTitle(const std::string& title) {
|
void App::SetTitle(const std::string& title) {
|
||||||
this->appTitle = title;
|
this->appTitle = title;
|
||||||
if (!initialized) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
PDC_set_title(this->appTitle.c_str());
|
PDC_set_title(this->appTitle.c_str());
|
||||||
win32::SetAppTitle(this->appTitle);
|
win32::SetAppTitle(this->appTitle);
|
||||||
|
Loading…
Reference in New Issue
Block a user