From 2531c8f609d0d051880333b02d7db1da75d082ce Mon Sep 17 00:00:00 2001 From: CnC-RaVaGe Date: Sun, 1 Sep 2024 01:57:12 +0100 Subject: [PATCH] Fixed blurry UI when using display scaling. Removed showing startup tips. Removed daily tips. --- MissionEditor/FinalSun.cpp | 18 ++---------------- MissionEditor/FinalSun.h | 3 --- MissionEditor/FinalSunDlg.cpp | 6 ++---- MissionEditor/MissionEditor.rc | 9 ++++----- 4 files changed, 8 insertions(+), 28 deletions(-) diff --git a/MissionEditor/FinalSun.cpp b/MissionEditor/FinalSun.cpp index 1f5424c..1e07805 100644 --- a/MissionEditor/FinalSun.cpp +++ b/MissionEditor/FinalSun.cpp @@ -67,6 +67,8 @@ void __cdecl term_func() CFinalSunApp::CFinalSunApp() { + BOOL SetProcessDPIAware(); //YR Redux: fixed blurry UI when using display scaling + m_cf = RegisterClipboardFormat("FINAL*FORMAT"); if (!m_cf) MessageBox(0, "Failed to register clipboard format, clipboard functions not available", "", 0); @@ -394,22 +396,6 @@ void CFinalSunApp::ParseCommandLine() #endif } -void CFinalSunApp::ShowTipAtStartup(void) -{ - CTipDlg dlg; - if (dlg.m_bStartup) - dlg.DoModal(); - - -} - -void CFinalSunApp::ShowTipOfTheDay(void) -{ - CTipDlg dlg; - dlg.DoModal(); - -} - int CFinalSunApp::Run() { return CWinApp::Run(); diff --git a/MissionEditor/FinalSun.h b/MissionEditor/FinalSun.h index e3dc5c4..7850ed1 100644 --- a/MissionEditor/FinalSun.h +++ b/MissionEditor/FinalSun.h @@ -116,9 +116,6 @@ public: UINT m_cf; HACCEL m_hAccel; void ParseCommandLine(); - void ShowTipAtStartup(void); - void ShowTipOfTheDay(void); - private: std::string m_u8LogFileName; }; diff --git a/MissionEditor/FinalSunDlg.cpp b/MissionEditor/FinalSunDlg.cpp index 355c661..9a9b46e 100644 --- a/MissionEditor/FinalSunDlg.cpp +++ b/MissionEditor/FinalSunDlg.cpp @@ -381,10 +381,8 @@ BOOL CFinalSunDlg::OnInitDialog() if(strlen(currentMapFile)==0) // no map file specified { // ok, let the user choose a map! - // hmm... no, don“t let him. we already have our tips dialog. - // OnFileOpenmap(); - - theApp.ShowTipAtStartup(); + OnFileOpenmap(); + //YR Redux: removed startup tips. } else // yah, map file specified { diff --git a/MissionEditor/MissionEditor.rc b/MissionEditor/MissionEditor.rc index 457be9a..78b561d 100644 --- a/MissionEditor/MissionEditor.rc +++ b/MissionEditor/MissionEditor.rc @@ -15,7 +15,7 @@ #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// -// Deutsch (Deutschland) resources +// German (Germany) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU) LANGUAGE LANG_GERMAN, SUBLANG_GERMAN @@ -57,12 +57,12 @@ END #endif // APSTUDIO_INVOKED -#endif // Deutsch (Deutschland) resources +#endif // German (Germany) resources ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// -// Englisch (USA) resources +// English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US @@ -3355,7 +3355,6 @@ BEGIN MENUITEM "Manual\tF1", ID_HELP MENUITEM SEPARATOR MENUITEM "Info", ID_HELP_INFO - MENUITEM "Tip of the day", ID_HELP_TIPOFTHEDAY MENUITEM SEPARATOR MENUITEM "Show logs", ID_HELP_SHOWLOGS END @@ -3585,7 +3584,7 @@ BEGIN ID_MARBLEMADNESS "Switch Framework Mode" END -#endif // Englisch (USA) resources +#endif // English (United States) resources /////////////////////////////////////////////////////////////////////////////