Author: espreon
Date: Fri Oct  7 07:43:30 2011
New Revision: 51409

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51409&view=rev
Log:
Increase the clock report's time string's buffer to fifteen characters so that 
the twelve-hour stuff works for CJKV; allow more text in the clock.

Modified:
    trunk/data/themes/macros.cfg
    trunk/src/reports.cpp

Modified: trunk/data/themes/macros.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/themes/macros.cfg?rev=51409&r1=51408&r2=51409&view=diff
==============================================================================
--- trunk/data/themes/macros.cfg (original)
+++ trunk/data/themes/macros.cfg Fri Oct  7 07:43:30 2011
@@ -23,7 +23,7 @@
         id=report_timeout
         font_size={FONT_SMALL_SIZE}
         ref=time-icon
-        rect="+0,=,+60,+20"
+        rect="+0,=,+65,+20"
         xanchor=fixed
         yanchor=fixed
     [/report_countdown]

Modified: trunk/src/reports.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/reports.cpp?rev=51409&r1=51408&r2=51409&view=diff
==============================================================================
--- trunk/src/reports.cpp (original)
+++ trunk/src/reports.cpp Fri Oct  7 07:43:30 2011
@@ -1218,8 +1218,8 @@
        time_t t = std::time(NULL);
        struct tm *lt = std::localtime(&t);
        if (!lt) return report();
-       char temp[10];
-       size_t s = std::strftime(temp, 10,
+       char temp[15];
+       size_t s = std::strftime(temp, 15,
                (preferences::use_twelve_hour_clock_format() ? _("%I:%M %p") : 
_("%H:%M")),
                lt);
        return s ? text_report(temp) : report();


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to