Minor UI tweaks

This commit is contained in:
Henrik Rydgard committed 2013-11-26 13:57:25 +01:00
1 parent d6fa5b8399
commit d2e70ce06f
4 files changed
+12 -1

No files matched your search

+4
View File
@@ -175,6 +175,10 @@ void UIContext::DrawTextRect(const char *str, const Bounds &bounds, uint32_t col
}
void UIContext::FillRect(const UI::Drawable &drawable, const Bounds &bounds) {
// Only draw if alpha is non-zero.
if ((drawable.color & 0xFF000000) == 0)
return;
switch (drawable.type) {
case UI::DRAW_SOLID_COLOR:
uidrawbuffer_->DrawImageStretch(theme->whiteImage, bounds.x, bounds.y, bounds.x2(), bounds.y2(), drawable.color);