mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Switch all NativeMessageReceived to System_PostUIMessage
This commit is contained in:
1 parent
ac4506e389
commit
84fffec4f3
20 files changed
+94
-101
No files matched your search
@@ -241,7 +241,7 @@ namespace MainWindow
|
||||
g_Config.iInternalResolution = 0;
|
||||
}
|
||||
|
||||
NativeMessageReceived("gpu_renderResized", "");
|
||||
System_PostUIMessage("gpu_renderResized", "");
|
||||
}
|
||||
|
||||
void CorrectCursor() {
|
||||
@@ -282,7 +282,7 @@ namespace MainWindow
|
||||
SavePosition();
|
||||
Core_NotifyWindowHidden(false);
|
||||
if (!g_Config.bPauseWhenMinimized) {
|
||||
NativeMessageReceived("window minimized", "false");
|
||||
System_PostUIMessage("window minimized", "false");
|
||||
}
|
||||
|
||||
int width = 0, height = 0;
|
||||
@@ -305,8 +305,8 @@ namespace MainWindow
|
||||
DEBUG_LOG(SYSTEM, "Pixel width/height: %dx%d", PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
|
||||
|
||||
if (UpdateScreenScale(width, height)) {
|
||||
NativeMessageReceived("gpu_displayResized", "");
|
||||
NativeMessageReceived("gpu_renderResized", "");
|
||||
System_PostUIMessage("gpu_displayResized", "");
|
||||
System_PostUIMessage("gpu_renderResized", "");
|
||||
}
|
||||
|
||||
// Don't save the window state if fullscreen.
|
||||
@@ -856,12 +856,12 @@ namespace MainWindow
|
||||
}
|
||||
|
||||
if (wParam == WA_ACTIVE || wParam == WA_CLICKACTIVE) {
|
||||
NativeMessageReceived("got_focus", "");
|
||||
System_PostUIMessage("got_focus", "");
|
||||
hasFocus = true;
|
||||
trapMouse = true;
|
||||
}
|
||||
if (wParam == WA_INACTIVE) {
|
||||
NativeMessageReceived("lost_focus", "");
|
||||
System_PostUIMessage("lost_focus", "");
|
||||
WindowsRawInput::LoseFocus();
|
||||
InputDevice::LoseFocus();
|
||||
hasFocus = false;
|
||||
@@ -908,7 +908,7 @@ namespace MainWindow
|
||||
case SIZE_MINIMIZED:
|
||||
Core_NotifyWindowHidden(true);
|
||||
if (!g_Config.bPauseWhenMinimized) {
|
||||
NativeMessageReceived("window minimized", "true");
|
||||
System_PostUIMessage("window minimized", "true");
|
||||
}
|
||||
InputDevice::LoseFocus();
|
||||
break;
|
||||
@@ -1032,7 +1032,7 @@ namespace MainWindow
|
||||
TCHAR filename[512];
|
||||
if (DragQueryFile(hdrop, 0, filename, 512) != 0) {
|
||||
const std::string utf8_filename = ReplaceAll(ConvertWStringToUTF8(filename), "\\", "/");
|
||||
NativeMessageReceived("boot", utf8_filename.c_str());
|
||||
System_PostUIMessage("boot", utf8_filename.c_str());
|
||||
Core_EnableStepping(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user