[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netPanzer-CVS] netpanzer/src/UILib/SDL SDLDraw.cpp
From: |
Matthias Braun |
Subject: |
[netPanzer-CVS] netpanzer/src/UILib/SDL SDLDraw.cpp |
Date: |
Sat, 06 Sep 2003 13:28:08 -0400 |
CVSROOT: /cvsroot/netpanzer
Module name: netpanzer
Branch:
Changes by: Matthias Braun <address@hidden> 03/09/06 13:28:08
Modified files:
src/UILib/SDL : SDLDraw.cpp
Log message:
hide the hardware cursor, and only open the game in a window for now
Patches:
Index: netpanzer/src/UILib/SDL/SDLDraw.cpp
diff -u netpanzer/src/UILib/SDL/SDLDraw.cpp:1.4
netpanzer/src/UILib/SDL/SDLDraw.cpp:1.5
--- netpanzer/src/UILib/SDL/SDLDraw.cpp:1.4 Sat Sep 6 07:04:15 2003
+++ netpanzer/src/UILib/SDL/SDLDraw.cpp Sat Sep 6 13:28:08 2003
@@ -47,10 +47,17 @@
bool SDLDraw::setVideoMode(DWORD width, DWORD height, DWORD bpp, BYTE
mode_flags)
{
- FrontBuffer = SDL_SetVideoMode(width, height, bpp, SDL_FULLSCREEN /*|
SDL_DOUBLEBUF | SDL_HWSURFACE*/);
- if(FrontBuffer==NULL)
- return false;
- return true;
+ Uint32 flags = 0 /* SDL_FULLSCREEN | SDL_DOUBLEBUF */;
+ FrontBuffer = SDL_SetVideoMode(width, height, bpp, flags);
+ if(FrontBuffer==NULL)
+ return false;
+
+ // let's scare the mouse :)
+ SDL_ShowCursor(SDL_DISABLE);
+ // and set a window title
+ SDL_WM_SetCaption("NetPanzer - Linux Port", 0);
+
+ return true;
}
bool SDLDraw::isDisplayModeAvailable(int width, int height, int bpp)
- [netPanzer-CVS] netpanzer/src/UILib/SDL SDLDraw.cpp,
Matthias Braun <=