Browse Source

Update hwcursor.cpp

pull/7430/head
Eric Robinson 1 year ago committed by Anders Jenbo
parent
commit
d7b5a0c972
  1. 2
      Source/hwcursor.cpp

2
Source/hwcursor.cpp

@ -144,7 +144,7 @@ bool SetHardwareCursorFromSprite(int pcurs)
constexpr std::uint8_t TransparentColor = 1;
SDL_FillRect(out.surface, nullptr, TransparentColor);
SDL_SetColorKey(out.surface, 1, TransparentColor);
DrawSoftwareCursor(out, { outlineWidth, size.height - outlineWidth }, pcurs);
DrawSoftwareCursor(out, { outlineWidth, size.height - outlineWidth - 1 }, pcurs);
const bool result = SetHardwareCursorFromSurface(
out.surface, isItem ? HotpointPosition::Center : HotpointPosition::TopLeft);

Loading…
Cancel
Save