diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-09-26 16:41:26 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-09-26 16:41:26 +0000 |
| commit | f862f173f588b0b177626ab40a0019d683299ac7 (patch) | |
| tree | 191ea1356add2d21ec3f43853f88cbf351be6774 /input.c | |
| parent | main: initialize scale to '1' (diff) | |
input: scale coordinates in wl_pointer_enter()
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -383,8 +383,8 @@ wl_pointer_enter(void *data, struct wl_pointer *wl_pointer, { struct terminal *term = data; - int x = wl_fixed_to_int(surface_x) * 1; //scale - int y = wl_fixed_to_int(surface_y) * 1; //scale + int x = wl_fixed_to_int(surface_x) * term->scale; + int y = wl_fixed_to_int(surface_y) * term->scale; term->mouse.col = x / term->cell_width; term->mouse.row = y / term->cell_height; |
