WX: Don't specify a parent frame for the render frame

This commit is contained in:
Starsam80 2017-04-19 16:13:23 -06:00
parent 6997515ec1
commit a41c0d3caa
No known key found for this signature in database
GPG Key ID: 4E48BB48BA7E9026
1 changed files with 2 additions and 1 deletions

View File

@ -662,7 +662,8 @@ void CFrame::StartGame(const std::string& filename)
// Set window size in framebuffer pixels since the 3D rendering will be operating at
// that level.
wxSize default_size{wxSize(640, 480) * (1.0 / GetContentScaleFactor())};
m_RenderFrame = new CRenderFrame(this, wxID_ANY, _("Dolphin"), wxDefaultPosition, default_size);
m_RenderFrame =
new CRenderFrame(nullptr, wxID_ANY, _("Dolphin"), wxDefaultPosition, default_size);
// Convert ClientSize coordinates to frame sizes.
wxSize decoration_fudge = m_RenderFrame->GetSize() - m_RenderFrame->GetClientSize();