summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_text_utils.h
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-03-11 15:18:21 +0000
committerTom Hacohen <tom@stosb.com>2013-03-11 15:33:28 +0000
commit23264ae09cf6b0bfc09c3858df0cfc3539766c88 (patch)
tree9a4372d362a098a4f63144840fb848ffa5db6f27 /src/lib/evas/common/evas_text_utils.h
parent973d0b475b693e84d64f7cbb82384d19aa92b1c6 (diff)
Evas textblock: Fixed coord (int) overflow.
X advance coords can be bigger than the limits of short.
Diffstat (limited to 'src/lib/evas/common/evas_text_utils.h')
-rw-r--r--src/lib/evas/common/evas_text_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_text_utils.h b/src/lib/evas/common/evas_text_utils.h
index 144761ea28..c24ded6015 100644
--- a/src/lib/evas/common/evas_text_utils.h
+++ b/src/lib/evas/common/evas_text_utils.h
@@ -123,7 +123,8 @@ struct _Evas_Font_Glyph_Info
123#if 1 123#if 1
124 // done with shorts to save space... if we need 32k or bigger glyphs and 124 // done with shorts to save space... if we need 32k or bigger glyphs and
125 // relative layout info... worry then. 125 // relative layout info... worry then.
126 short x_bear, y_bear, width, pen_after; // 8 126 Evas_Coord pen_after; // 4
127 short x_bear, y_bear, width; // 6
127#else 128#else
128 Evas_Coord x_bear; // 4 129 Evas_Coord x_bear; // 4
129 /* This one is rarely used, only in draw, in which we already get the glyph 130 /* This one is rarely used, only in draw, in which we already get the glyph