mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
third case
This commit is contained in:
parent
38de3d866c
commit
73af7f6c3e
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue