GUI: Fix compilation with LAYOUT_DEBUG_DIALOG enabled

This commit is contained in:
Eugene Sandulenko 2021-11-21 18:23:43 +01:00
parent f0f213ca6b
commit b9a2753c2c
No known key found for this signature in database
GPG key ID: 014D387312D34F08
3 changed files with 20 additions and 10 deletions

View file

@ -146,7 +146,7 @@ int16 ThemeLayoutStacked::getParentHeight() {
}
#ifdef LAYOUT_DEBUG_DIALOG
void ThemeLayout::debugDraw(Graphics::Surface *screen, const Graphics::Font *font) {
void ThemeLayout::debugDraw(Graphics::ManagedSurface *screen, const Graphics::Font *font) {
uint32 color = 0xFFFFFFFF;
font->drawString(screen, getName(), _x, _y, _w, color, Graphics::kTextAlignRight, 0, true);
screen->hLine(_x, _y, _x + _w, color);