[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src video.cpp
From: |
Isaac Clerencia |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src video.cpp |
Date: |
Tue, 05 Oct 2004 17:55:43 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Isaac Clerencia <address@hidden> 04/10/05 21:48:53
Modified files:
src : video.cpp
Log message:
Switched to new logging system
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/video.cpp.diff?tr1=1.48&tr2=1.49&r1=text&r2=text
Patches:
Index: wesnoth/src/video.cpp
diff -u wesnoth/src/video.cpp:1.48 wesnoth/src/video.cpp:1.49
--- wesnoth/src/video.cpp:1.48 Mon Aug 23 06:41:00 2004
+++ wesnoth/src/video.cpp Tue Oct 5 21:48:52 2004
@@ -1,4 +1,4 @@
-/* $Id: video.cpp,v 1.48 2004/08/23 06:41:00 gakusho Exp $ */
+/* $Id: video.cpp,v 1.49 2004/10/05 21:48:52 isaaccp Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -25,10 +25,13 @@
#include "font.hpp"
#include "halo.hpp"
#include "image.hpp"
+#include "log.hpp"
#include "mouse.hpp"
#include "preferences.hpp"
#include "video.hpp"
+#define LOG_DP lg::info(lg::display)
+
#define TEST_VIDEO_ON 0
#if (TEST_VIDEO_ON==1)
@@ -202,7 +205,7 @@
const int res = SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO |
SDL_INIT_NOPARACHUTE);
if(res < 0) {
- std::cerr << "Could not initialize SDL: " << SDL_GetError() <<
"\n";
+ LOG_DP << "Could not initialize SDL: " << SDL_GetError() <<
"\n";
throw CVideo::error();
}
}
@@ -212,22 +215,22 @@
{
const int res = SDL_Init( SDL_INIT_VIDEO | SDL_INIT_AUDIO |
SDL_INIT_NOPARACHUTE);
if(res < 0) {
- std::cerr << "Could not initialize SDL: " << SDL_GetError() <<
"\n";
+ LOG_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) {
- std::cerr << "Could not set Video Mode\n";
+ LOG_DP << "Could not set Video Mode\n";
throw CVideo::error();
}
}
CVideo::~CVideo()
{
- std::cerr << "calling SDL_Quit()\n";
+ LOG_DP << "calling SDL_Quit()\n";
SDL_Quit();
- std::cerr << "called SDL_Quit()\n";
+ LOG_DP << "called SDL_Quit()\n";
}
void CVideo::make_fake()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src video.cpp,
Isaac Clerencia <=