mirror of
https://github.com/glest/glest-source.git
synced 2025-08-08 17:36:30 +02:00
- screen resolutions sorted now in options menu
This commit is contained in:
@@ -102,6 +102,21 @@ public:
|
||||
|
||||
ModeInfo(int width, int height, int depth);
|
||||
|
||||
bool operator< (const ModeInfo &j) const {
|
||||
if(this->width < j.width) {
|
||||
return true;
|
||||
}
|
||||
else if(this->width == j.width && this->height < j.height) {
|
||||
return true;
|
||||
}
|
||||
else if(this->width == j.width &&
|
||||
this->height == j.height &&
|
||||
this->depth < j.depth) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
string getString() const;
|
||||
};
|
||||
|
||||
@@ -142,7 +157,7 @@ string extractDirectoryPathFromFile(string filename);
|
||||
string extractLastDirectoryFromPath(string Path);
|
||||
string extractExtension(const string& filename);
|
||||
|
||||
void getFullscreenVideoModes(list<ModeInfo> *modeinfos,bool isFullscreen);
|
||||
void getFullscreenVideoModes(vector<ModeInfo> *modeinfos,bool isFullscreen);
|
||||
void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight,bool isFullscreen);
|
||||
bool changeVideoMode(int resH, int resW, int colorBits, int refreshFrequency);
|
||||
void restoreVideoMode(bool exitingApp=false);
|
||||
|
Reference in New Issue
Block a user