summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-09-08 00:26:09 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-09-08 00:26:09 +0000
commitac5270c30d750233ac6bffb25f35112b0d271156 (patch)
treecb3ed50713e22a6cf8c8d4a34bea4b9f70bc118f /src
parent684e8fb1eab6524da8d225daf4d99bfd1b92cf7b (diff)
add #include - missing and make pinch zoom gesture for font size
change ... less sensitive. SVN revision: 76326
Diffstat (limited to 'src')
-rw-r--r--src/bin/termio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 6684fbc..1002a67 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -6,6 +6,7 @@
6#include "termio.h" 6#include "termio.h"
7#include "termiolink.h" 7#include "termiolink.h"
8#include "termpty.h" 8#include "termpty.h"
9#include "termcmd.h"
9#include "utf8.h" 10#include "utf8.h"
10#include "col.h" 11#include "col.h"
11#include "keyin.h" 12#include "keyin.h"
@@ -1827,7 +1828,8 @@ _smart_cb_gest_zoom_move(void *data, void *event)
1827 if (config) 1828 if (config)
1828 { 1829 {
1829 sd->zoom_fontsize_start = config->font.size; 1830 sd->zoom_fontsize_start = config->font.size;
1830 _font_size_set(data, (double)sd->zoom_fontsize_start * p->zoom); 1831 _font_size_set(data, (double)sd->zoom_fontsize_start *
1832 (p->zoom / 30.0));
1831 } 1833 }
1832 sd->didclick = EINA_TRUE; 1834 sd->didclick = EINA_TRUE;
1833 return EVAS_EVENT_FLAG_ON_HOLD; 1835 return EVAS_EVENT_FLAG_ON_HOLD;
@@ -1844,7 +1846,8 @@ _smart_cb_gest_zoom_end(void *data, void *event)
1844 if (config) 1846 if (config)
1845 { 1847 {
1846 sd->zoom_fontsize_start = config->font.size; 1848 sd->zoom_fontsize_start = config->font.size;
1847 _font_size_set(data, (double)sd->zoom_fontsize_start * p->zoom); 1849 _font_size_set(data, (double)sd->zoom_fontsize_start *
1850 (p->zoom / 30.0));
1848 } 1851 }
1849 sd->didclick = EINA_TRUE; 1852 sd->didclick = EINA_TRUE;
1850 return EVAS_EVENT_FLAG_ON_HOLD; 1853 return EVAS_EVENT_FLAG_ON_HOLD;