display: Fix copy/paste typo for UNSCALEY

In 9fe8e849, we accidentally used UNSCALEX
rather than UNSCALEY for offset_y. This patch
corrects that typo.
This commit is contained in:
Alx Sa 2025-05-15 13:06:36 +00:00
parent 6475f0a6dc
commit 4eb462a7a4

View file

@ -167,7 +167,7 @@ gimp_display_shell_canvas_tick (GtkWidget *widget,
SQR (tick->prev_height)));
offset_x = UNSCALEX (shell, shell->offset_x);
offset_y = UNSCALEX (shell, shell->offset_y);
offset_y = UNSCALEY (shell, shell->offset_y);
gimp_zoom_model_zoom (shell->zoom, GIMP_ZOOM_TO, scale);