mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 12:54:01 +02:00
- bugfix for sullscreen SDL restore video
This commit is contained in:
@@ -802,7 +802,7 @@ bool changeVideoMode(int resW, int resH, int colorBits, int ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void restoreVideoMode(bool exitingApp) {
|
void restoreVideoMode(bool exitingApp) {
|
||||||
SDL_Quit();
|
//SDL_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
int getScreenW() {
|
int getScreenW() {
|
||||||
|
@@ -34,19 +34,31 @@ namespace Shared{ namespace Platform{
|
|||||||
// class PlatformContextGl
|
// class PlatformContextGl
|
||||||
// ======================================
|
// ======================================
|
||||||
PlatformContextGl::PlatformContextGl() {
|
PlatformContextGl::PlatformContextGl() {
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
icon = NULL;
|
icon = NULL;
|
||||||
screen = NULL;
|
screen = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
PlatformContextGl::~PlatformContextGl() {
|
PlatformContextGl::~PlatformContextGl() {
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
if(icon != NULL) {
|
if(icon != NULL) {
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
SDL_FreeSurface(icon);
|
SDL_FreeSurface(icon);
|
||||||
icon = NULL;
|
icon = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
if(screen != NULL) {
|
if(screen != NULL) {
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
SDL_FreeSurface(screen);
|
SDL_FreeSurface(screen);
|
||||||
screen = NULL;
|
screen = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,bool hardware_acceleration, bool fullscreen_anti_aliasing) {
|
void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,bool hardware_acceleration, bool fullscreen_anti_aliasing) {
|
||||||
|
Reference in New Issue
Block a user