ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.5 by root, Sun Apr 9 00:06:09 2006 UTC vs.
Revision 1.6 by root, Sun Apr 9 00:06:51 2006 UTC

52 layout = pango_layout_new (context); 52 layout = pango_layout_new (context);
53 pango_layout_set_markup (layout, text, textlen); 53 pango_layout_set_markup (layout, text, textlen);
54 pango_layout_get_pixel_size (layout, &w, &h); 54 pango_layout_get_pixel_size (layout, &w, &h);
55 55
56 w = (w + 3) & ~3; 56 w = (w + 3) & ~3;
57 if (!w) w = 1;
57 if (h == 0) h = 1; 58 if (!h) h = 1;
58 59
59 retval = newSV (w * h); 60 retval = newSV (w * h);
60 SvPOK_only (retval); 61 SvPOK_only (retval);
61 SvCUR_set (retval, w * h); 62 SvCUR_set (retval, w * h);
62 63

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines