From 31cfe30468e61704fd74732a4ac471f4245020e4 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Fri, 4 Jul 2025 10:28:42 +0200 Subject: [PATCH] Fix MinGW compile with title of DX9 window Fix MinGW compile with title of DX9 window --- src/wx/panel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index 6a99bfc2..f46fcc5b 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -2409,11 +2409,13 @@ void SDLDrawingPanel::DrawingPanelInit() if (SDL_SetPointerProperty(props, SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER, wxGetApp().frame->GetPanel()->GetHandle()) == false) #elif defined(__WXMSW__) if (OPTION(kSDLRenderer) == wxString("direct3d")) { + void *title = (void *)"visualboyadvance-m SDL DX9"; + SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER, height * scale); SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER, width * scale); SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_MAXIMIZED_BOOLEAN, true); SDL_SetBooleanProperty(props, SDL_PROP_WINDOW_CREATE_RESIZABLE_BOOLEAN, true); - SDL_SetPointerProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, "visualboyadvance-m SDL DX9"); + SDL_SetPointerProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, title); } else if (SDL_SetPointerProperty(props, SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER, GetHandle()) == false) #else if (SDL_SetPointerProperty(props, "sdl2-compat.external_window", GetWindow()->GetHandle()) == false)