Skip to content

Commit

Permalink
fixed: round corner radius for highlighted candidate not correct when…
Browse files Browse the repository at this point in the history
… hemispherical triggered
  • Loading branch information
fxliang committed Aug 10, 2023
1 parent 1567d60 commit 8dcc49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeaselUI/WeaselPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void WeaselPanel::_HighlightText(CDCHandle &dc, CRect rc, COLORREF color, COLORR

GraphicsRoundRectPath* hiliteBackPath;
if (rd.Hemispherical && type!= BackType::BACKGROUND && NOT_FULLSCREENLAYOUT(m_style))
hiliteBackPath = new GraphicsRoundRectPath(rc, m_style.round_corner_ex - m_style.border/2 + (m_style.border % 2), rd.IsTopLeftNeedToRound, rd.IsTopRightNeedToRound, rd.IsBottomRightNeedToRound, rd.IsBottomLeftNeedToRound);
hiliteBackPath = new GraphicsRoundRectPath(rc, m_style.round_corner_ex - (m_style.border%2 ? m_style.border / 2 : 0) , rd.IsTopLeftNeedToRound, rd.IsTopRightNeedToRound, rd.IsBottomRightNeedToRound, rd.IsBottomLeftNeedToRound);
else // background or current candidate background not out of window background
hiliteBackPath = new GraphicsRoundRectPath(rc, radius);

Expand Down

0 comments on commit 8dcc49c

Please sign in to comment.