File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,11 @@ void render_frame_background(struct swaylock_surface *surface) {
71
71
void render_frame (struct swaylock_surface * surface ) {
72
72
struct swaylock_state * state = surface -> state ;
73
73
74
+ double border_width = 2.0 * surface -> scale ;
75
+
74
76
int arc_radius = state -> args .radius * surface -> scale ;
75
77
int arc_thickness = state -> args .thickness * surface -> scale ;
76
- int buffer_diameter = (arc_radius + arc_thickness ) * 2 ;
78
+ int buffer_diameter = (arc_radius + border_width ) * 2 + arc_thickness ;
77
79
78
80
int buffer_width = surface -> indicator_width ;
79
81
int buffer_height = surface -> indicator_height ;
@@ -261,7 +263,7 @@ void render_frame(struct swaylock_surface *surface) {
261
263
262
264
// Draw inner + outer border of the circle
263
265
set_color_for_state (cairo , state , & state -> args .colors .line );
264
- cairo_set_line_width (cairo , 2.0 * surface -> scale );
266
+ cairo_set_line_width (cairo , border_width );
265
267
cairo_arc (cairo , buffer_width / 2 , buffer_diameter / 2 ,
266
268
arc_radius - arc_thickness / 2 , 0 , 2 * M_PI );
267
269
cairo_stroke (cairo );
You can’t perform that action at this time.
0 commit comments