diff options
| author | Geoff Greer <geoff@greer.fm> | 2019-04-02 18:51:05 -0700 |
|---|---|---|
| committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-04-03 01:15:51 -0400 |
| commit | 98e5afe364776d06017579e14f972be6f65fbb8b (patch) | |
| tree | ccbc4c9a52d3551b0de16f281f93da058a09941c /render.c | |
| parent | 7892d8cc51c84b6a0330bc27517e5d3a9efbb67e (diff) | |
Fix lock indicator position on hidpi screens.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
