Skip to content

Commit

Permalink
Switched to shader for corner rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
AdalynBlack committed Jul 24, 2024
1 parent 1eb31a5 commit 502b4a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/canvas/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<D, S> Control<D, S> {
self.bg_color.z,
self.bg_color.w,
skew_radius[0],
skew_radius[1])?;
skew_radius[1]])?;

canvas.pipeline_bg_color.create_pass(
[canvas.width as _, canvas.height as _],
Expand Down Expand Up @@ -174,7 +174,7 @@ impl<D, S> Control<D, S> {
self.bg_color.z,
self.bg_color.w,
0.,
0.)?;
0.])?;

canvas.pipeline_bg_color.create_pass(
[canvas.width as _, canvas.height as _],
Expand Down Expand Up @@ -217,7 +217,7 @@ impl<D, S> Control<D, S> {
color.z,
color.w,
skew_radius[0],
skew_radius[1])?;
skew_radius[1]])?;

let pass = canvas.pipeline_bg_color.create_pass(
[canvas.width as _, canvas.height as _],
Expand Down

0 comments on commit 502b4a7

Please sign in to comment.