mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Added a green debug mode rectangle for CarouselComponent.
Also changed the debug mode rectangle from blue to green for TextListComponent.
This commit is contained in:
parent
a112fc035f
commit
468d2b3635
|
@ -387,6 +387,10 @@ template <typename T> void CarouselComponent<T>::render(const glm::mat4& parentT
|
|||
|
||||
mRenderer->setMatrix(carouselTrans);
|
||||
|
||||
// In image debug mode, draw a green rectangle covering the entire carousel area.
|
||||
if (Settings::getInstance()->getBool("DebugImage"))
|
||||
mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00FF0033, 0x00FF0033);
|
||||
|
||||
// Background box behind the items.
|
||||
mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, mCarouselColor, mCarouselColorEnd,
|
||||
mColorGradientHorizontal);
|
||||
|
|
|
@ -376,7 +376,7 @@ template <typename T> void TextListComponent<T>::render(const glm::mat4& parentT
|
|||
if (Settings::getInstance()->getBool("DebugText")) {
|
||||
mRenderer->drawRect(mHorizontalMargin, 0.0f, mSize.x - mHorizontalMargin * 2.0f, mSize.y,
|
||||
0x00000033, 0x00000033);
|
||||
mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x0000FF33, 0x0000FF33);
|
||||
mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00FF0033, 0x00FF0033);
|
||||
}
|
||||
|
||||
// Clip to inside margins.
|
||||
|
|
Loading…
Reference in a new issue