update cursors

GuiCursor needs to be changed to use bitmapAsset
guiTypes.GuiCursor safety around rendering getBitmap()
This commit is contained in:
marauder2k7 2025-06-18 09:27:47 +01:00
parent 794a8c900d
commit 51b1e3b07e
3 changed files with 18 additions and 14 deletions

View file

@ -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();