summaryrefslogtreecommitdiff
path: root/gui/common.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 06:41:03 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 06:41:03 -0300
commit86bbde6852de4406e080337042b697fa58e50f30 (patch)
tree71f26135c5ccc5bd477eb883480ab4bc6bac37e0 /gui/common.h
parent8e572113b8289a6d5b66f66e0b2e77af8d71874b (diff)
downloadeeshow-86bbde6852de4406e080337042b697fa58e50f30.tar.gz
eeshow-86bbde6852de4406e080337042b697fa58e50f30.tar.bz2
eeshow-86bbde6852de4406e080337042b697fa58e50f30.zip
eeshow/gui/: change zoom system to use float; reduce step from 2 to 2^(1/3)
Diffstat (limited to 'gui/common.h')
-rw-r--r--gui/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/common.h b/gui/common.h
index cf82f47..c67ef76 100644
--- a/gui/common.h
+++ b/gui/common.h
@@ -65,7 +65,7 @@ struct gui_hist {
struct gui_ctx {
GtkWidget *da;
- unsigned zoom; /* scale by 1.0 / (1 << zoom) */
+ float scale; /* pixels = eeschema * scale */
int x, y; /* center, in eeschema coordinates */
struct pl_ctx *pl; // @@@