use of get<some name> methods that already return nulls/false when attempting to load

in contexts where we would want to try first
This commit is contained in:
AzaezelX 2025-05-27 17:07:08 -05:00
parent a43458677a
commit 40974dd14b
11 changed files with 31 additions and 31 deletions

View file

@ -1090,13 +1090,13 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
}
// Draw a bitmap over the background?
if ( mBitmapAsset[Depressed].notNull() )
if (getBitmap(Depressed))
{
RectI rect(offset, mBitmapBounds);
drawUtil->clearBitmapModulation();
drawUtil->drawBitmapStretch(getBitmap(Depressed), rect );
}
else if (mBitmapAsset[Normal].notNull())
else if (getBitmap(Normal))
{
RectI rect(offset, mBitmapBounds);
drawUtil->clearBitmapModulation();
@ -1134,7 +1134,7 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
}
// Draw a bitmap over the background?
if (mBitmapAsset[Normal].notNull())
if (getBitmap(Normal))
{
RectI rect( offset, mBitmapBounds );
drawUtil->clearBitmapModulation();
@ -1164,7 +1164,7 @@ void GuiPopUpMenuCtrlEx::onRender(Point2I offset, const RectI &updateRect)
}
// Draw a bitmap over the background?
if (mBitmapAsset[Normal].notNull())
if (getBitmap(Normal))
{
RectI rect(offset, mBitmapBounds);
drawUtil->clearBitmapModulation();