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:
parent
3f41cf32ef
commit
1cb21de201
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ namespace Beefy.theme.dark
|
||||||
{
|
{
|
||||||
if (mHiliteCurrentLine && selStartIdx == selEndIdx)
|
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
|
// 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.
|
// to properly highlight the whole line without getting cut off - this works well for now.
|
||||||
float totalLineWidth = mEditWidget.mScrollContentContainer.mWidth - thickness;
|
float totalLineWidth = mEditWidget.mScrollContentContainer.mWidth - thickness;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue