wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src/widgets button.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src/widgets button.cpp
Date: Thu, 20 Jan 2005 17:49:46 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    05/01/20 22:49:46

Modified files:
        src/widgets    : button.cpp 

Log message:
        Small cleanup.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/button.cpp.diff?tr1=1.52&tr2=1.53&r1=text&r2=text

Patches:
Index: wesnoth/src/widgets/button.cpp
diff -u wesnoth/src/widgets/button.cpp:1.52 wesnoth/src/widgets/button.cpp:1.53
--- wesnoth/src/widgets/button.cpp:1.52 Sat Dec 11 20:27:13 2004
+++ wesnoth/src/widgets/button.cpp      Thu Jan 20 22:49:46 2005
@@ -1,4 +1,4 @@
-/* $Id: button.cpp,v 1.52 2004/12/11 20:27:13 silene Exp $ */
+/* $Id: button.cpp,v 1.53 2005/01/20 22:49:46 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -171,7 +171,7 @@
                image = greyscale_image(image);
 
        disp().blit_surface(loc.x, loc.y, image);
-       const std::string etext = font::make_text_ellipsis(label_, font_size, 
width());
+       const std::string etext = font::make_text_ellipsis(label_, font_size, 
loc.w);
        font::draw_text(&disp(), clipArea, font_size, font::BUTTON_COLOUR, 
etext, textx, texty);
 
        update_rect(loc);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]