mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
just a few tweaks and it works!
* enable video again * set default bpp to 32 - SDL2 dont like 24 bit resolution * now almost everything looks as expected (some issues are present though)
This commit is contained in:
@ -358,7 +358,6 @@ int main(int argc, char** argv)
|
|||||||
setScreenRes(res["width"].Float(), res["height"].Float(), video["bitsPerPixel"].Float(), video["fullscreen"].Bool());
|
setScreenRes(res["width"].Float(), res["height"].Float(), video["bitsPerPixel"].Float(), video["fullscreen"].Bool());
|
||||||
logGlobal->infoStream() <<"\tInitializing screen: "<<pomtime.getDiff();
|
logGlobal->infoStream() <<"\tInitializing screen: "<<pomtime.getDiff();
|
||||||
}
|
}
|
||||||
#define DISABLE_VIDEO 1
|
|
||||||
|
|
||||||
CCS = new CClientState;
|
CCS = new CClientState;
|
||||||
CGI = new CGameInfo; //contains all global informations about game (texts, lodHandlers, map handler etc.)
|
CGI = new CGameInfo; //contains all global informations about game (texts, lodHandlers, map handler etc.)
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
},
|
},
|
||||||
"bitsPerPixel" : {
|
"bitsPerPixel" : {
|
||||||
"type" : "number",
|
"type" : "number",
|
||||||
"default" : 24
|
"default" : 32
|
||||||
},
|
},
|
||||||
"fullscreen" : {
|
"fullscreen" : {
|
||||||
"type" : "boolean",
|
"type" : "boolean",
|
||||||
|
Reference in New Issue
Block a user