mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Removes global g_xres and g_yres dependency from GUI objects.
Differential Revision: https://code.wildfiregames.com/D4014 This was SVN commit r25577.
This commit is contained in:
@@ -419,6 +419,11 @@ IGUIObject* CGUI::FindObjectUnderMouse()
|
||||
return pNearest;
|
||||
}
|
||||
|
||||
CSize2D CGUI::GetWindowSize() const
|
||||
{
|
||||
return CSize2D{static_cast<float>(g_xres) / g_GuiScale, static_cast<float>(g_yres) / g_GuiScale};
|
||||
}
|
||||
|
||||
void CGUI::SetFocusedObject(IGUIObject* pObject)
|
||||
{
|
||||
if (pObject == m_FocusedObject)
|
||||
|
||||
Reference in New Issue
Block a user