mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 19:13:40 +01:00
Minor UI tweaks
This commit is contained in:
1 parent
d6fa5b8399
commit
d2e70ce06f
4 files changed
+12
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user