fix: Remove extra scaling of borders
This commit is contained in:
parent
95b27637ae
commit
ad2cba324e
4 changed files with 0 additions and 22 deletions
|
|
@ -185,7 +185,6 @@ impl IndicatorShader {
|
|||
key: impl Into<Key>,
|
||||
mut element_geo: Rectangle<i32, Local>,
|
||||
thickness: u8,
|
||||
scale: f64,
|
||||
alpha: f32,
|
||||
active_window_hint: [f32; 3],
|
||||
) -> PixelShaderElement {
|
||||
|
|
@ -200,7 +199,6 @@ impl IndicatorShader {
|
|||
thickness,
|
||||
thickness * 2,
|
||||
alpha,
|
||||
scale,
|
||||
active_window_hint,
|
||||
)
|
||||
}
|
||||
|
|
@ -212,12 +210,8 @@ impl IndicatorShader {
|
|||
thickness: u8,
|
||||
radius: u8,
|
||||
alpha: f32,
|
||||
scale: f64,
|
||||
color: [f32; 3],
|
||||
) -> PixelShaderElement {
|
||||
let thickness = (thickness as f64 * scale).round() as u8;
|
||||
let radius = (radius as f64 * scale).round() as u8;
|
||||
|
||||
let settings = IndicatorSettings {
|
||||
thickness,
|
||||
radius,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue