changeset 10:d1e9297afff9

imported patch 12_kinput2-v3.1-linespace.patch
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 20:07:06 +0900
parents 1f9e9cb00c6c
children
files lib/imlib/imattr.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lib/imlib/imattr.c	Mon Mar 08 20:07:06 2010 +0900
+++ b/lib/imlib/imattr.c	Mon Mar 08 20:07:06 2010 +0900
@@ -179,7 +179,7 @@
 	  setBgPixmap, getBgPixmap },
     { XNFontSet, TYPE_XFONTSET, OP_C|OP_S|OP_G,
 	  setFontSet, getFontSet },
-    { XNLineSpace, TYPE_CARD16, OP_C|OP_S|OP_G,	  /* should be TYPE_INT16 */
+    { XNLineSpace, TYPE_CARD32, OP_C|OP_S|OP_G,	  /* should be TYPE_INT32 */
 	  setLineSpace, getLineSpace },
     { XNCursor, TYPE_CARD32, OP_C|OP_S|OP_G,
 	  setCursor, getCursor },
@@ -832,14 +832,14 @@
 
     TRACE(("imlib:setLineSpace()\n"));
 
-    CHECK_ICATTR_SIZE(2, IMBadSomething);
+    CHECK_ICATTR_SIZE(4, IMBadSomething);
 
     if ((ap = getPSPtr(icp, nest)) == NULL) {
 	unnestedError(icp);
 	return -1;
     }
 
-    line_space = getI16(value, order);	/* ??? linespacing is 'int' */
+    line_space = getC32(value, order);	/* ??? linespacing is 'int' */
     TRACE(("\tline space: %d\n", line_space));
 
     if (!(ap->set_mask & ATTR_MASK_LINESPACE) ||