GUI: Get rid of placeholder for fold indicator

This commit is contained in:
av-dx 2021-08-01 20:55:00 +05:30 committed by Eugene Sandulenko
parent 142759bf31
commit 08b442aa76

View File

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