mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
Host: Kill off GetRenderWindowSize
This commit is contained in:
parent
aa2fc1f66b
commit
b94dbca160
13 changed files with 12 additions and 141 deletions
|
@ -748,23 +748,6 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
|||
}
|
||||
}
|
||||
|
||||
void CFrame::GetRenderWindowSize(int& x, int& y, int& width, int& height)
|
||||
{
|
||||
#ifdef __WXGTK__
|
||||
if (!wxIsMainThread())
|
||||
wxMutexGuiEnter();
|
||||
#endif
|
||||
wxRect client_rect = m_RenderParent->GetClientRect();
|
||||
width = client_rect.width;
|
||||
height = client_rect.height;
|
||||
x = client_rect.x;
|
||||
y = client_rect.y;
|
||||
#ifdef __WXGTK__
|
||||
if (!wxIsMainThread())
|
||||
wxMutexGuiLeave();
|
||||
#endif
|
||||
}
|
||||
|
||||
void CFrame::OnRenderWindowSizeRequest(int width, int height)
|
||||
{
|
||||
if (!Core::IsRunning() ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue