[NiL-SVN] SF.net SVN: nil: [540] trunk/nil-ng/src/common/graphics/Graphics.cc
Status: Alpha
Brought to you by:
e-user
|
From: <e-...@us...> - 2007-09-24 23:50:09
|
Revision: 540
http://nil.svn.sourceforge.net/nil/?rev=540&view=rev
Author: e-user
Date: 2007-09-24 16:50:13 -0700 (Mon, 24 Sep 2007)
Log Message:
-----------
explicit redundant header inclusions for ide lookup
Modified Paths:
--------------
trunk/nil-ng/src/common/graphics/Graphics.cc
Modified: trunk/nil-ng/src/common/graphics/Graphics.cc
===================================================================
--- trunk/nil-ng/src/common/graphics/Graphics.cc 2007-09-24 23:47:57 UTC (rev 539)
+++ trunk/nil-ng/src/common/graphics/Graphics.cc 2007-09-24 23:50:13 UTC (rev 540)
@@ -19,6 +19,7 @@
*
*****************************************************************************/
#include <Graphics.h>
+#include <SDL.h>
#include <sstream>
Graphics* Graphics::_instance = 0;
@@ -96,7 +97,7 @@
void
Graphics::initialize() throw(InitializationFailure)
{
- SDL_WM_SetCaption("NiL isn't Liero", "NiL isn't Liero");
+ SDL_WM_SetCaption("NiL isn't Liero", NULL);
// SDL_WM_SetIcon(SDL_Surface *icon, Uint8 *mask); TODO
IConsole* console = IConsole::primary();
@@ -130,7 +131,7 @@
if (this->is_opengl)
{
if (SDL_VideoModeOK(this->_width, this->_height, this->_depth,
- this->video_flags | SDL_HWACCEL| SDL_OPENGL))
+ this->video_flags | SDL_HWACCEL | SDL_OPENGL))
{
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
this->video_flags |= SDL_HWACCEL | SDL_OPENGL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|