mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-05 17:20:30 +00:00
GUI: Get rid of placeholder for fold indicator
This commit is contained in:
parent
142759bf31
commit
08b442aa76
@ -1440,22 +1440,19 @@ void ThemeEngine::drawChar(const Common::Rect &r, byte ch, const Graphics::Font
|
||||
}
|
||||
|
||||
void ThemeEngine::drawFoldIndicator(const Common::Rect &r, bool expanded) {
|
||||
Common::U32String arrow = (expanded) ? Common::U32String(" v ") : Common::U32String(" > ");
|
||||
drawText(r, arrow, kStateEnabled, Graphics::kTextAlignCenter, kTextInversionNone,
|
||||
0, false, kFontStyleConsole, kFontColorNormal);
|
||||
// Graphics::VectorRenderer::TriangleOrientation orient;
|
||||
// if (_layerToDraw == kDrawLayerBackground)
|
||||
// return;
|
||||
Graphics::VectorRenderer::TriangleOrientation orient;
|
||||
if (_layerToDraw == kDrawLayerBackground)
|
||||
return;
|
||||
|
||||
// if (expanded)
|
||||
// orient = Graphics::VectorRenderer::kTriangleDown;
|
||||
// else
|
||||
// orient = Graphics::VectorRenderer::kTriangleRight;
|
||||
if (expanded)
|
||||
orient = Graphics::VectorRenderer::kTriangleDown;
|
||||
else
|
||||
orient = Graphics::VectorRenderer::kTriangleRight;
|
||||
|
||||
// _vectorRenderer->setFillMode(Graphics::VectorRenderer::kFillForeground);
|
||||
// _vectorRenderer->setFgColor(_textColors[kTextColorNormal]->r, _textColors[kTextColorNormal]->g, _textColors[kTextColorNormal]->b);
|
||||
// _vectorRenderer->drawTriangle(r.left + r.width() / 4, r.top + r.height() / 4, r.width() / 2, r.height() / 2, orient);
|
||||
// addDirtyRect(r);
|
||||
_vectorRenderer->setFillMode(Graphics::VectorRenderer::kFillForeground);
|
||||
_vectorRenderer->setFgColor(_textColors[kTextColorNormal]->r, _textColors[kTextColorNormal]->g, _textColors[kTextColorNormal]->b);
|
||||
_vectorRenderer->drawTriangle(r.left + r.width() / 4, r.top + r.height() / 4, r.width() / 2, r.height() / 2, orient);
|
||||
addDirtyRect(r);
|
||||
}
|
||||
|
||||
void ThemeEngine::debugWidgetPosition(const char *name, const Common::Rect &r) {
|
||||
|
Loading…
Reference in New Issue
Block a user