mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Host: Kill off GetRenderWindowSize
This commit is contained in:
@ -32,14 +32,6 @@ void* Host_GetRenderHandle()
|
||||
return (void*)(g_main_window->GetRenderWidget()->winId());
|
||||
}
|
||||
|
||||
void Host_GetRenderWindowSize(int& x, int& y, int& w, int& h)
|
||||
{
|
||||
// TODO: Make it more clear what this is supposed to return.. i.e. WX always sets x=y=0
|
||||
g_main_window->RenderWidgetSize(x, y, w, h);
|
||||
x = 0;
|
||||
y = 0;
|
||||
}
|
||||
|
||||
void Host_RequestRenderWindowSize(int w, int h)
|
||||
{
|
||||
DRenderWidget* render_widget = g_main_window->GetRenderWidget();
|
||||
|
@ -221,23 +221,6 @@ void DMainWindow::OnCoreStateChanged(Core::EState state)
|
||||
m_ui->actionOpen->setEnabled(is_not_initialized);
|
||||
}
|
||||
|
||||
// DRenderWidget
|
||||
void DMainWindow::RenderWidgetSize(int& x_pos, int& y_pos, int& w, int& h)
|
||||
{
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
|
||||
{
|
||||
x_pos = x();
|
||||
y_pos = y();
|
||||
}
|
||||
else
|
||||
{
|
||||
x_pos = m_render_widget->x();
|
||||
y_pos = m_render_widget->y();
|
||||
}
|
||||
w = m_render_widget->width();
|
||||
h = m_render_widget->height();
|
||||
}
|
||||
|
||||
bool DMainWindow::RenderWidgetHasFocus()
|
||||
{
|
||||
if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain)
|
||||
|
@ -26,7 +26,6 @@ public:
|
||||
~DMainWindow();
|
||||
|
||||
// DRenderWidget
|
||||
void RenderWidgetSize(int& x_pos, int& y_pos, int& w, int& h);
|
||||
bool RenderWidgetHasFocus();
|
||||
DRenderWidget* GetRenderWidget() { return m_render_widget.get(); }
|
||||
|
||||
|
Reference in New Issue
Block a user