mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Use dpi ref in Widget.cpp
This commit is contained in:
committed by
duncanspumpkin
parent
96d77ed8f7
commit
90d21dbe14
@@ -651,7 +651,7 @@ void WindowDrawWidgets(WindowBase& w, DrawPixelInfo& dpi)
|
||||
if (w.windowPos.y + widget->top < dpi.y + dpi.height && w.windowPos.y + widget->bottom >= dpi.y)
|
||||
{
|
||||
if (w.IsLegacy())
|
||||
WidgetDraw(&dpi, w, widgetIndex);
|
||||
WidgetDraw(dpi, w, widgetIndex);
|
||||
else
|
||||
w.OnDrawWidget(widgetIndex, dpi);
|
||||
}
|
||||
@@ -715,7 +715,7 @@ void Window::OnDraw(DrawPixelInfo& dpi)
|
||||
|
||||
void Window::OnDrawWidget(WidgetIndex widgetIndex, DrawPixelInfo& dpi)
|
||||
{
|
||||
WidgetDraw(&dpi, *this, widgetIndex);
|
||||
WidgetDraw(dpi, *this, widgetIndex);
|
||||
}
|
||||
|
||||
void Window::InitScrollWidgets()
|
||||
|
||||
Reference in New Issue
Block a user