1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Round thickness of line highlight to prevent weird rendering.

This commit is contained in:
MineBill 2025-02-14 00:34:04 +02:00
parent 3f41cf32ef
commit 1cb21de201
No known key found for this signature in database

View file

@ -575,7 +575,7 @@ namespace Beefy.theme.dark
{
if (mHiliteCurrentLine && selStartIdx == selEndIdx)
{
float thickness = 2 * (fontLineSpacing / 18);
float thickness = Math.Ceiling(2 * (Math.Floor(fontLineSpacing) / 18));
// This isn't quite the right value, but I'm not sure how to get this
// to properly highlight the whole line without getting cut off - this works well for now.
float totalLineWidth = mEditWidget.mScrollContentContainer.mWidth - thickness;