fix zoom. Closes T888

This commit is contained in:
Boris Faure 2014-03-01 17:59:01 +01:00
parent 5067594760
commit 29418fdc55
1 changed files with 4 additions and 6 deletions

View File

@ -3630,8 +3630,7 @@ _smart_cb_gest_zoom_move(void *data, void *event)
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_ON_HOLD);
if (config)
{
int sz = (double)sd->zoom_fontsize_start *
(1.0 + ((p->zoom - 1.0) / 30.0));
int sz = (double)sd->zoom_fontsize_start * p->zoom;
if (sz != config->font.size) _font_size_set(data, sz);
}
sd->didclick = EINA_TRUE;
@ -3648,8 +3647,7 @@ _smart_cb_gest_zoom_end(void *data, void *event)
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EVAS_EVENT_FLAG_ON_HOLD);
if (config)
{
int sz = (double)sd->zoom_fontsize_start *
(1.0 + ((p->zoom - 1.0) / 30.0));
int sz = (double)sd->zoom_fontsize_start * p->zoom;
if (sz != config->font.size) _font_size_set(data, sz);
}
sd->didclick = EINA_TRUE;