summaryrefslogtreecommitdiff
path: root/gui/glabel.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/glabel.c')
-rw-r--r--gui/glabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/glabel.c b/gui/glabel.c
index 8d7586b..fba5e04 100644
--- a/gui/glabel.c
+++ b/gui/glabel.c
@@ -49,8 +49,8 @@ static void eeschema_coord(const struct gui_ctx *ctx,
GtkAllocation alloc;
gtk_widget_get_allocation(ctx->da, &alloc);
- *rx = ((x - ctx->x) >> ctx->zoom) + alloc.width / 2;
- *ry = ((y - ctx->y) >> ctx->zoom) + alloc.height / 2;
+ *rx = ((x - ctx->x) * ctx->scale) + alloc.width / 2;
+ *ry = ((y - ctx->y) * ctx->scale) + alloc.height / 2;
}