mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 03:06:29 +00:00
Move GUI<>::FallBackSprite and GUI<>::FallBackColor to CGUIColor::operator|| and CGUISpriteInstance::operator||.
Leaves only setting management in GUIutil.h. Differential Revision: https://code.wildfiregames.com/D2185 This was SVN commit r22689.
This commit is contained in:
+1
-1
@@ -353,7 +353,7 @@ void CGUI::Draw()
|
||||
void CGUI::DrawSprite(const CGUISpriteInstance& Sprite, int CellID, const float& Z, const CRect& Rect, const CRect& UNUSED(Clipping))
|
||||
{
|
||||
// If the sprite doesn't exist (name == ""), don't bother drawing anything
|
||||
if (Sprite.IsEmpty())
|
||||
if (!Sprite)
|
||||
return;
|
||||
|
||||
// TODO: Clipping?
|
||||
|
||||
Reference in New Issue
Block a user