Browse Source

Remove clipping from `scrollrt_draw_cursor_item`

There was no reason for this clipping from what I can tell

Now that we actually have working clipping, this just looks odd
pull/1897/head
Gleb Mazovetskiy 5 years ago committed by Anders Jenbo
parent
commit
f025d5c910
  1. 9
      Source/scrollrt.cpp

9
Source/scrollrt.cpp

@ -216,19 +216,18 @@ static void scrollrt_draw_cursor_item(const CelOutputBuffer &out)
mx++;
my++;
const CelOutputBuffer &sub = out.subregion(0, 0, out.w() - 2, out.h());
const auto &sprite = GetInvItemSprite(pcurs);
const int frame = GetInvItemFrame(pcurs);
if (pcurs >= CURSOR_FIRSTITEM) {
const auto &heldItem = plr[myplr].HoldItem;
CelBlitOutlineTo(sub, GetOutlineColor(heldItem, true), mx, my + cursH - 1, sprite, frame, false);
CelBlitOutlineTo(out, GetOutlineColor(heldItem, true), mx, my + cursH - 1, sprite, frame, false);
if (heldItem._iStatFlag) {
CelClippedDrawSafeTo(sub, mx, my + cursH - 1, sprite, frame);
CelClippedDrawSafeTo(out, mx, my + cursH - 1, sprite, frame);
} else {
CelDrawLightRedSafeTo(sub, mx, my + cursH - 1, sprite, frame, 1);
CelDrawLightRedSafeTo(out, mx, my + cursH - 1, sprite, frame, 1);
}
} else {
CelClippedDrawSafeTo(sub, mx, my + cursH - 1, sprite, frame);
CelClippedDrawSafeTo(out, mx, my + cursH - 1, sprite, frame);
}
}

Loading…
Cancel
Save