Fix MinGW compile with title of DX9 window
Fix MinGW compile with title of DX9 window
This commit is contained in:
parent
2f8369c3c7
commit
31cfe30468
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue