1
0
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:
Gymnasiast
2023-04-03 21:32:58 +02:00
committed by duncanspumpkin
parent 96d77ed8f7
commit 90d21dbe14
4 changed files with 116 additions and 116 deletions

View File

@@ -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()