From 98e5afe364776d06017579e14f972be6f65fbb8b Mon Sep 17 00:00:00 2001 From: Geoff Greer Date: Tue, 2 Apr 2019 18:51:05 -0700 Subject: Fix lock indicator position on hidpi screens. --- render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render.c') diff --git a/render.c b/render.c index 47d3824..4538f22 100644 --- a/render.c +++ b/render.c @@ -76,7 +76,7 @@ void render_frame(struct swaylock_surface *surface) { int buffer_diameter = (arc_radius + arc_thickness) * 2; int buffer_height = buffer_diameter * 2; - int indicator_radius = (state->args.radius + state->args.thickness) * surface->scale; + int indicator_radius = state->args.radius + state->args.thickness; int subsurf_xpos = surface->width / 2 - indicator_radius; int subsurf_ypos = surface->height / 2 - indicator_radius; wl_subsurface_set_position(surface->subsurface, subsurf_xpos, subsurf_ypos); -- cgit v1.2.3