Move irrelevant code out of Core.cpp

This commit is contained in:
Henrik Rydgård committed 2024-12-02 13:26:41 +01:00
1 parent 7926696913
commit 2b8414b437
10 files changed
+140 -145

No files matched your search

+3 -3
View File
@@ -273,7 +273,7 @@ namespace MainWindow
static void HandleSizeChange(int newSizingType) {
SavePosition();
Core_NotifyWindowHidden(false);
Native_NotifyWindowHidden(false);
if (!g_Config.bPauseWhenMinimized) {
System_PostUIMessage(UIMessage::WINDOW_MINIMIZED, "false");
}
@@ -294,7 +294,7 @@ namespace MainWindow
DEBUG_LOG(Log::System, "Pixel width/height: %dx%d", PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
if (UpdateScreenScale(width, height)) {
if (Native_UpdateScreenScale(width, height)) {
System_PostUIMessage(UIMessage::GPU_DISPLAY_RESIZED);
System_PostUIMessage(UIMessage::GPU_RENDER_RESIZED);
}
@@ -936,7 +936,7 @@ namespace MainWindow
break;
case SIZE_MINIMIZED:
Core_NotifyWindowHidden(true);
Native_NotifyWindowHidden(true);
if (!g_Config.bPauseWhenMinimized) {
System_PostUIMessage(UIMessage::WINDOW_MINIMIZED, "true");
}