summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_font_private.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-10-10 07:00:07 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-10-10 07:00:07 +0000
commit3dbe48e4fed43682ed74d215af49ca44557f6563 (patch)
treec33a658df096e2d44f6c95b78b152216db899999 /legacy/evas/src/lib/engines/common/evas_font_private.h
parent922030ca724cd52c92341397960bcc609d6f9ae4 (diff)
ok ok.. METRIC!
SVN revision: 77695
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_font_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_font_private.h b/legacy/evas/src/lib/engines/common/evas_font_private.h
index c50cbb0c46..bbc4675bf5 100644
--- a/legacy/evas/src/lib/engines/common/evas_font_private.h
+++ b/legacy/evas/src/lib/engines/common/evas_font_private.h
@@ -48,14 +48,14 @@ void evas_common_font_int_reload(RGBA_Font_Int *fi);
48 48
49# if 1 49# if 1
50// do proper round (up or down like 1.4 -> 1 and 1.6 -> 2 etc 50// do proper round (up or down like 1.4 -> 1 and 1.6 -> 2 etc
51# define FONT_MERTIC_CONV(val, dv, scale) \ 51# define FONT_METRIC_CONV(val, dv, scale) \
52 (((long long)((val) * (scale)) + (long long)((dv) * (dv) / 2LL)) \ 52 (((long long)((val) * (scale)) + (long long)((dv) * (dv) / 2LL)) \
53 / (long long)((dv) * (dv))) 53 / (long long)((dv) * (dv)))
54# define FONT_METRIC_ROUNDUP(val) \ 54# define FONT_METRIC_ROUNDUP(val) \
55 (((val) + 31) >> 6) 55 (((val) + 31) >> 6)
56# else 56# else
57// truncate/round down 57// truncate/round down
58# define FONT_MERTIC_CONV(val, dv, scale) \ 58# define FONT_METRIC_CONV(val, dv, scale) \
59 (((val) * (scale)) / ((dv) * (dv))) 59 (((val) * (scale)) / ((dv) * (dv)))
60# define FONT_METRIC_ROUNDUP(val) \ 60# define FONT_METRIC_ROUNDUP(val) \
61 ((val) >> 6) 61 ((val) >> 6)