mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +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);
|
ColorI color(255,255,255,alpha);
|
||||||
if (mBitmap)
|
if (getBitmap())
|
||||||
{
|
{
|
||||||
GFX->getDrawUtil()->setBitmapModulation(color);
|
GFX->getDrawUtil()->setBitmapModulation(color);
|
||||||
|
|
||||||
if(mWrap)
|
if(mWrap)
|
||||||
{
|
{
|
||||||
|
|
||||||
GFXTextureObject* texture = mBitmap;
|
GFXTextureObject* texture = getBitmap();
|
||||||
RectI srcRegion;
|
RectI srcRegion;
|
||||||
RectI dstRegion;
|
RectI dstRegion;
|
||||||
F32 xdone = ((F32)getExtent().x/(F32)texture->mBitmapSize.x)+1;
|
F32 xdone = ((F32)getExtent().x/(F32)texture->mBitmapSize.x)+1;
|
||||||
|
|
@ -145,11 +145,11 @@ public:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RectI rect(offset, getExtent());
|
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);
|
RectI rect(offset.x, offset.y, getExtent().x, getExtent().y);
|
||||||
ColorI borderCol(mProfile->mBorderColor);
|
ColorI borderCol(mProfile->mBorderColor);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue