Skip to content

Commit

Permalink
Update hwcursor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Sep 24, 2024
1 parent fe15ae3 commit 31c3ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/hwcursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 31c3ada

Please sign in to comment.