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

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

[Wesnoth-cvs-commits] wesnoth/src titlescreen.cpp theme.cpp video.cpp


From: Guillaume Melquiond
Subject: [Wesnoth-cvs-commits] wesnoth/src titlescreen.cpp theme.cpp video.cpp
Date: Wed, 06 Oct 2004 02:00:20 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <address@hidden>    04/10/06 05:45:42

Modified files:
        src            : titlescreen.cpp theme.cpp video.cpp 

Log message:
        Change log severity

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/titlescreen.cpp.diff?tr1=1.21&tr2=1.22&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/theme.cpp.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/video.cpp.diff?tr1=1.49&tr2=1.50&r1=text&r2=text

Patches:
Index: wesnoth/src/theme.cpp
diff -u wesnoth/src/theme.cpp:1.18 wesnoth/src/theme.cpp:1.19
--- wesnoth/src/theme.cpp:1.18  Tue Oct  5 23:11:35 2004
+++ wesnoth/src/theme.cpp       Wed Oct  6 05:45:41 2004
@@ -241,7 +241,7 @@
 
        if(current == resolutions.end()) {
                if(!resolutions.empty())
-                       LOG_DP << "ERROR: No valid resolution found\n";
+                       lg::err(lg::display) << "No valid resolution found\n";
                return false;
        }
 
Index: wesnoth/src/titlescreen.cpp
diff -u wesnoth/src/titlescreen.cpp:1.21 wesnoth/src/titlescreen.cpp:1.22
--- wesnoth/src/titlescreen.cpp:1.21    Tue Oct  5 23:11:35 2004
+++ wesnoth/src/titlescreen.cpp Wed Oct  6 05:45:41 2004
@@ -17,6 +17,7 @@
 #include "SDL_ttf.h"
 
 #define LOG_DP lg::info(lg::display)
+#define ERR_DP lg::info(lg::display)
 
 namespace {
 
@@ -24,7 +25,7 @@
 {
        const surface 
logo(image::get_image(game_config::game_logo,image::UNSCALED));
        if(logo == NULL) {
-               LOG_DP << "Could not find game logo\n";
+               ERR_DP << "Could not find game logo\n";
                return;
        }
 
@@ -133,7 +134,7 @@
        const surface 
title_surface(scale_surface(title_surface_unscaled,screen.x(),screen.y()));
 
        if(title_surface == NULL) {
-               LOG_DP << "Could not find title image\n";
+               ERR_DP << "Could not find title image\n";
        } else {
                screen.blit_surface(0,0,title_surface);
                update_rect(screen.screen_area());
Index: wesnoth/src/video.cpp
diff -u wesnoth/src/video.cpp:1.49 wesnoth/src/video.cpp:1.50
--- wesnoth/src/video.cpp:1.49  Tue Oct  5 21:48:52 2004
+++ wesnoth/src/video.cpp       Wed Oct  6 05:45:41 2004
@@ -1,4 +1,4 @@
-/* $Id: video.cpp,v 1.49 2004/10/05 21:48:52 isaaccp Exp $ */
+/* $Id: video.cpp,v 1.50 2004/10/06 05:45:41 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -31,6 +31,7 @@
 #include "video.hpp"
 
 #define LOG_DP lg::info(lg::display)
+#define ERR_DP lg::err(lg::display)
 
 #define TEST_VIDEO_ON 0
 
@@ -205,7 +206,7 @@
        const int res = SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | 
SDL_INIT_NOPARACHUTE);
 
        if(res < 0) {
-               LOG_DP << "Could not initialize SDL: " << SDL_GetError() << 
"\n";
+               ERR_DP << "Could not initialize SDL: " << SDL_GetError() << 
"\n";
                throw CVideo::error();
        }
 }
@@ -215,13 +216,13 @@
 {
        const int res = SDL_Init( SDL_INIT_VIDEO | SDL_INIT_AUDIO | 
SDL_INIT_NOPARACHUTE);
        if(res < 0) {
-               LOG_DP << "Could not initialize SDL: " << SDL_GetError() << 
"\n";
+               ERR_DP << "Could not initialize SDL: " << SDL_GetError() << 
"\n";
                throw CVideo::error();
        }
 
        const int mode_res = setMode( x, y, bits_per_pixel, flags );
        if (mode_res == 0) {
-               LOG_DP << "Could not set Video Mode\n";
+               ERR_DP << "Could not set Video Mode\n";
                throw CVideo::error();
        }
 }




reply via email to

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