mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 20:35:35 +00:00
update cursors
GuiCursor needs to be changed to use bitmapAsset guiTypes.GuiCursor safety around rendering getBitmap()
This commit is contained in:
parent
794a8c900d
commit
51b1e3b07e
3 changed files with 18 additions and 14 deletions
|
|
@ -116,6 +116,10 @@ void GuiCursor::render(const Point2I &pos)
|
|||
{
|
||||
mExtent.set(getBitmap()->getWidth(), getBitmap()->getHeight());
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Render the cursor centered according to dimensions of texture
|
||||
S32 texWidth = getBitmap()->getWidth();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue