mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +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
+2
-6
@@ -1118,7 +1118,7 @@ void NativeRender(GraphicsContext *graphicsContext) {
|
||||
#if !PPSSPP_PLATFORM(WINDOWS) && !defined(ANDROID)
|
||||
PSP_CoreParameter().pixelWidth = g_display.pixel_xres;
|
||||
PSP_CoreParameter().pixelHeight = g_display.pixel_yres;
|
||||
NativeMessageReceived("gpu_displayResized", "");
|
||||
System_PostUIMessage("gpu_displayResized", "");
|
||||
#endif
|
||||
} else {
|
||||
// INFO_LOG(G3D, "Polling graphics context");
|
||||
@@ -1341,7 +1341,7 @@ void NativeAxis(const AxisInput &axis) {
|
||||
xSensitivity, ySensitivity);
|
||||
}
|
||||
|
||||
void NativeMessageReceived(const char *message, const char *value) {
|
||||
void System_PostUIMessage(const std::string &message, const std::string &value) {
|
||||
std::lock_guard<std::mutex> lock(pendingMutex);
|
||||
PendingMessage pendingMessage;
|
||||
pendingMessage.msg = message;
|
||||
@@ -1349,10 +1349,6 @@ void NativeMessageReceived(const char *message, const char *value) {
|
||||
pendingMessages.push_back(pendingMessage);
|
||||
}
|
||||
|
||||
void System_PostUIMessage(const std::string &message, const std::string &value) {
|
||||
NativeMessageReceived(message.c_str(), value.c_str());
|
||||
}
|
||||
|
||||
void NativeResized() {
|
||||
// NativeResized can come from any thread so we just set a flag, then process it later.
|
||||
VERBOSE_LOG(G3D, "NativeResized - setting flag");
|
||||
|
||||
Reference in new issue
Block a user