third case

This commit is contained in:
AzaezelX 2025-05-21 11:06:50 -05:00
parent 38de3d866c
commit 73af7f6c3e

View file

@ -115,14 +115,14 @@ public:
}
ColorI color(255,255,255,alpha);
if (mBitmap)
if (getBitmap())
{
GFX->getDrawUtil()->setBitmapModulation(color);
if(mWrap)
{
GFXTextureObject* texture = mBitmap;
GFXTextureObject* texture = getBitmap();
RectI srcRegion;
RectI dstRegion;
F32 xdone = ((F32)getExtent().x/(F32)texture->mBitmapSize.x)+1;
@ -145,11 +145,11 @@ public:
else
{
RectI rect(offset, getExtent());
GFX->getDrawUtil()->drawBitmapStretch(mBitmap, rect);
GFX->getDrawUtil()->drawBitmapStretch(getBitmap(), rect);
}
}
if (mProfile->mBorder || !mBitmap)
if (mProfile->mBorder || !getBitmap())
{
RectI rect(offset.x, offset.y, getExtent().x, getExtent().y);
ColorI borderCol(mProfile->mBorderColor);