mail[Wesnoth-commits] r28428 - /trunk/src/text.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 10, 2008 - 16:58:
Author: mordante
Date: Sun Aug 10 15:41:35 2008
New Revision: 28428

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28428&view=rev
Log:
Adjust the sizes for the pango scale.

Modified:
    trunk/src/text.cpp

Modified: trunk/src/text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.cpp?rev=28428&r1=28427&r2=28428&view=diff
==============================================================================
--- trunk/src/text.cpp (original)
+++ trunk/src/text.cpp Sun Aug 10 15:41:35 2008
@@ -133,7 +133,7 @@
 ttext& ttext::set_maximum_width(const int width)
 {
        if(width != maximum_width_) {
-               pango_layout_set_width(layout_, width);
+               pango_layout_set_width(layout_, width == -1 ? -1 : width * 
PANGO_SCALE);
                maximum_width_ = width;
                calculation_dirty_ = true;
                surface_dirty_ = true;
@@ -150,7 +150,7 @@
  * released.
  */
 #if defined(PANGO_VERSION_CHECK) && PANGO_VERSION_CHECK(1,20,0)
-               pango_layout_set_height(layout_, height);
+               pango_layout_set_height(layout_, height == -1 ? -1 : height * 
PANGO_SCALE);
 #endif
                maximum_height_ = height;
                calculation_dirty_ = true;




Related Messages


Powered by MHonArc, Updated Sun Aug 10 17:21:55 2008