mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 19:51:44 +02:00
Added new setting to allow playing glest using multiple monitors
This commit is contained in:
@@ -97,6 +97,7 @@ vector<std::pair<string,int32> > getFolderTreeContentsCheckSumListRecursively(co
|
||||
void createDirectoryPaths(string Path);
|
||||
string extractDirectoryPathFromFile(string filename);
|
||||
|
||||
void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight);
|
||||
bool changeVideoMode(int resH, int resW, int colorBits, int refreshFrequency);
|
||||
void restoreVideoMode();
|
||||
|
||||
|
@@ -435,6 +435,14 @@ void createDirectoryPaths(string Path)
|
||||
mkdir(DirName, S_IRWXO);
|
||||
}
|
||||
|
||||
void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight) {
|
||||
// Get the current video hardware information
|
||||
const SDL_VideoInfo* vidInfo = SDL_GetVideoInfo();
|
||||
colorBits = vidInfo->vfmt->BitsPerPixel;
|
||||
screenWidth = vidInfo->current_w;
|
||||
screenHeight = vidInfo->current_h;
|
||||
}
|
||||
|
||||
bool changeVideoMode(int resW, int resH, int colorBits, int ) {
|
||||
Private::shouldBeFullscreen = true;
|
||||
return true;
|
||||
|
@@ -23,6 +23,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <direct.h>
|
||||
#include <algorithm>
|
||||
#include "opengl.h"
|
||||
|
||||
#include "leak_dumper.h"
|
||||
|
||||
@@ -452,6 +453,14 @@ void createDirectoryPaths(string Path)
|
||||
}
|
||||
_mkdir(DirName);
|
||||
}
|
||||
|
||||
void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight) {
|
||||
// Get the current video hardware information
|
||||
const SDL_VideoInfo* vidInfo = SDL_GetVideoInfo();
|
||||
colorBits = vidInfo->vfmt->BitsPerPixel;
|
||||
screenWidth = vidInfo->current_w;
|
||||
screenHeight = vidInfo->current_h;
|
||||
}
|
||||
|
||||
bool changeVideoMode(int resW, int resH, int colorBits, int refreshFrequency){
|
||||
DEVMODE devMode;
|
||||
|
Reference in New Issue
Block a user