From f025d5c910a4b383e88dcfb3df192106ac98089d Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 8 May 2021 17:17:02 +0100 Subject: [PATCH] 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 --- Source/scrollrt.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/scrollrt.cpp b/Source/scrollrt.cpp index fb72ab961..af29cd0c9 100644 --- a/Source/scrollrt.cpp +++ b/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); } }