mail[Wesnoth-commits] r28416 - /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 09, 2008 - 22:57:
Author: mordante
Date: Sat Aug  9 22:57:33 2008
New Revision: 28416

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28416&view=rev
Log:
Add workaround for older Pango versions, the code might not fully work as
expected with this option disabled.

Modified:
    trunk/src/text.cpp

Modified: trunk/src/text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.cpp?rev=28416&r1=28415&r2=28416&view=diff
==============================================================================
--- trunk/src/text.cpp (original)
+++ trunk/src/text.cpp Sat Aug  9 22:57:33 2008
@@ -141,7 +141,13 @@
 ttext& ttext::set_maximum_height(const int height)
 {
        if(height != maximum_height_) {
+/**
+ * @todo See whether we can make pango 1.20 mandatory before Wesnoth 1.6 is
+ * released.
+ */
+#if defined(PANGO_VERSION_CHECK) && PANGO_VERSION_CHECK(1,20,0)
                pango_layout_set_height(layout_, height);
+#endif
                maximum_height_ = height;
                calculation_dirty_ = true;
                surface_dirty_ = true;




Related Messages


Powered by MHonArc, Updated Sat Aug 09 23:21:09 2008