Browse Source

Update hwcursor.cpp

pull/7430/head
Eric Robinson 2 years 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; constexpr std::uint8_t TransparentColor = 1;
SDL_FillRect(out.surface, nullptr, TransparentColor); SDL_FillRect(out.surface, nullptr, TransparentColor);
SDL_SetColorKey(out.surface, 1, 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( const bool result = SetHardwareCursorFromSurface(
out.surface, isItem ? HotpointPosition::Center : HotpointPosition::TopLeft); out.surface, isItem ? HotpointPosition::Center : HotpointPosition::TopLeft);

Loading…
Cancel
Save