# HG changeset patch # User Yoshiki Yazawa # Date 1268046426 -32400 # Node ID d1e9297afff9300779017885727186ab99ed1a2f # Parent 1f9e9cb00c6c5c8d7bd05f082a3c8f94d4a346b0 imported patch 12_kinput2-v3.1-linespace.patch diff -r 1f9e9cb00c6c -r d1e9297afff9 lib/imlib/imattr.c --- 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) ||