MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / DrawSoftwareCursor

Function DrawSoftwareCursor

Source/cursor.cpp:295–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void DrawSoftwareCursor(const Surface &out, Point position, int cursId)
296{
297 const ClxSprite sprite = GetInvItemSprite(cursId);
298 if (!MyPlayer->HoldItem.isEmpty()) {
299 const auto &heldItem = MyPlayer->HoldItem;
300 ClxDrawOutline(out, GetOutlineColor(heldItem, true), position, sprite);
301 DrawItem(heldItem, out, position, sprite);
302 } else {
303 ClxDraw(out, position, sprite);
304 }
305}
306
307void InitLevelCursor()
308{

Callers 2

DrawCursorFunction · 0.85

Calls 6

GetInvItemSpriteFunction · 0.85
ClxDrawOutlineFunction · 0.85
GetOutlineColorFunction · 0.85
ClxDrawFunction · 0.85
isEmptyMethod · 0.80
DrawItemFunction · 0.70

Tested by

no test coverage detected