mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
Added new setting to allow playing glest using multiple monitors
This commit is contained in:
@@ -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