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

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

[Wesnoth-cvs-commits] wesnoth/src font.cpp multiplayer_ui.cpp playtur...


From: Jon Daniel
Subject: [Wesnoth-cvs-commits] wesnoth/src font.cpp multiplayer_ui.cpp playtur...
Date: Fri, 03 Jun 2005 15:15:28 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <address@hidden>     05/06/03 19:15:28

Modified files:
        src            : font.cpp multiplayer_ui.cpp playturn.cpp 

Log message:
        changed \027 to \033 because char constants are octal

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/font.cpp.diff?tr1=1.143&tr2=1.144&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/multiplayer_ui.cpp.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/playturn.cpp.diff?tr1=1.377&tr2=1.378&r1=text&r2=text

Patches:
Index: wesnoth/src/font.cpp
diff -u wesnoth/src/font.cpp:1.143 wesnoth/src/font.cpp:1.144
--- wesnoth/src/font.cpp:1.143  Fri Jun  3 10:11:08 2005
+++ wesnoth/src/font.cpp        Fri Jun  3 19:15:28 2005
@@ -1,4 +1,4 @@
-/* $Id: font.cpp,v 1.143 2005/06/03 10:11:08 j_daniel Exp $ */
+/* $Id: font.cpp,v 1.144 2005/06/03 19:15:28 j_daniel Exp $ */
 /* vim:set encoding=utf-8: */
 /*
    Copyright (C) 2003 by David White <address@hidden>
@@ -596,7 +596,7 @@
                case NULL_MARKUP:
                        return i1+1;
                // semi ANSI colour escape sequences at the start of the line 
for now only
-               case '\027':
+               case '\033':
                        if(i2 - i1 >= 4) {
                                ++i1;
                                if(*i1 == '[') {
Index: wesnoth/src/multiplayer_ui.cpp
diff -u wesnoth/src/multiplayer_ui.cpp:1.24 wesnoth/src/multiplayer_ui.cpp:1.25
--- wesnoth/src/multiplayer_ui.cpp:1.24 Fri Jun  3 10:11:08 2005
+++ wesnoth/src/multiplayer_ui.cpp      Fri Jun  3 19:15:28 2005
@@ -1,4 +1,4 @@
-/* $Id: multiplayer_ui.cpp,v 1.24 2005/06/03 10:11:08 j_daniel Exp $ */
+/* $Id: multiplayer_ui.cpp,v 1.25 2005/06/03 19:15:28 j_daniel Exp $ */
 /*
    Copyright (C) 2005 
    Part of the Battle for Wesnoth Project http://www.wesnoth.org
@@ -70,7 +70,7 @@
 
 std::string get_colour_string(int id)
 {
-       std::string prefix("\027[3 m");
+       std::string prefix("\033[3 m");
        prefix[3] = lexical_cast<char, int>(id + 1);
 
        switch(id) {
Index: wesnoth/src/playturn.cpp
diff -u wesnoth/src/playturn.cpp:1.377 wesnoth/src/playturn.cpp:1.378
--- wesnoth/src/playturn.cpp:1.377      Fri Jun  3 17:40:02 2005
+++ wesnoth/src/playturn.cpp    Fri Jun  3 19:15:28 2005
@@ -1,4 +1,4 @@
-/* $Id: playturn.cpp,v 1.377 2005/06/03 17:40:02 j_daniel Exp $ */
+/* $Id: playturn.cpp,v 1.378 2005/06/03 19:15:28 j_daniel Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1809,9 +1809,9 @@
                //cause it to be displayed in the correct colour
                if(leader != units_.end()) {
                        str << IMAGE_PREFIX << leader->second.type().image() << 
COLUMN_SEPARATOR
-                           << "\027[3" << lexical_cast<char, size_t>(n+1) << 
'm' << leader->second.description() << COLUMN_SEPARATOR;
+                           << "\033[3" << lexical_cast<char, size_t>(n+1) << 
'm' << leader->second.description() << COLUMN_SEPARATOR;
                } else {
-                       str << ' ' << COLUMN_SEPARATOR << "\027[3" << 
lexical_cast<char, size_t>(n+1) << "m-" << COLUMN_SEPARATOR;
+                       str << ' ' << COLUMN_SEPARATOR << "\033[3" << 
lexical_cast<char, size_t>(n+1) << "m-" << COLUMN_SEPARATOR;
                }
 
                if(enemy) {




reply via email to

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