diff options
| author | Martin Dørum <martid0311@gmail.com> | 2019-07-20 00:29:36 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2019-07-20 10:06:33 +0300 |
| commit | 080e8356b7c4a442985b7c7fcaddcbe2a950a3c0 (patch) | |
| tree | b0a68833a238fdeed60b8e2dd058b8fcf944247f | |
| parent | b1a7defa0087db7b984f568c79634316bb6bf1eb (diff) | |
properly fix indicator position
| -rw-r--r-- | render.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -81,9 +81,9 @@ void render_frame(struct swaylock_surface *surface) { int new_height = buffer_diameter; int subsurf_xpos = surface->width / 2 - - (state->args.radius + state->args.thickness) + 2 / surface->scale; + buffer_width / (2 * surface->scale) + 2 / surface->scale; int subsurf_ypos = surface->height / 2 - - (state->args.radius + state->args.thickness) + 2 / surface->scale; + (state->args.radius + state->args.thickness); wl_subsurface_set_position(surface->subsurface, subsurf_xpos, subsurf_ypos); surface->current_buffer = get_next_buffer(state->shm, |
