Tweaks to support QT on Windows

This commit is contained in:
ts-korhonen
2021-12-02 19:35:08 +02:00
parent bddc0c0698
commit b0a4f70fa9
4 changed files with 70 additions and 5 deletions

View File

@@ -62,8 +62,8 @@ void plat_mouse_capture(int on) {
}
int ui_msgbox_header(int flags, void *header, void* message) {
if (header <= (void*)7168) header = plat_get_string(reinterpret_cast<long>(header));
if (message <= (void*)7168) message = plat_get_string(reinterpret_cast<long>(message));
if (header <= (void*)7168) header = plat_get_string((uintptr_t)header);
if (message <= (void*)7168) message = plat_get_string((uintptr_t)message);
auto hdr = QString::fromWCharArray(reinterpret_cast<const wchar_t*>(header));
auto msg = QString::fromWCharArray(reinterpret_cast<const wchar_t*>(message));