mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
fix: change virtual screen resolution to 1920x1080(HD)
Since 31881af56936aeef38ff322b975fd0 , `skinHud.swf` for 720 is not included in `MediaWindows64.arc`, the app crashes unless the virtual screen is set to HD.
This commit is contained in:
parent
965676f495
commit
7cb41782c1
|
|
@ -289,8 +289,15 @@ int main(int argc, char **argv)
|
||||||
SetConsoleCtrlHandler(ConsoleCtrlHandlerProc, TRUE);
|
SetConsoleCtrlHandler(ConsoleCtrlHandlerProc, TRUE);
|
||||||
SetExeWorkingDirectory();
|
SetExeWorkingDirectory();
|
||||||
|
|
||||||
g_iScreenWidth = 1280;
|
// https://github.com/smartcmd/MinecraftConsoles/commit/cb9ab4ef
|
||||||
g_iScreenHeight = 720;
|
// cb9ab4ef5131881af56936aeef38ff322b975fd0 から、720用の`skinHud.swf`が`MediaWindows64.arc`に含まれていないため
|
||||||
|
// 仮想ScreenをHDにしないとクラッシュする
|
||||||
|
//
|
||||||
|
// g_iScreenWidth = 1280;
|
||||||
|
// g_iScreenHeight = 720;
|
||||||
|
|
||||||
|
g_iScreenWidth = 1920;
|
||||||
|
g_iScreenHeight = 1080;
|
||||||
|
|
||||||
strncpy_s(g_Win64Username, sizeof(g_Win64Username), config.name, _TRUNCATE);
|
strncpy_s(g_Win64Username, sizeof(g_Win64Username), config.name, _TRUNCATE);
|
||||||
MultiByteToWideChar(CP_ACP, 0, g_Win64Username, -1, g_Win64UsernameW, 17);
|
MultiByteToWideChar(CP_ACP, 0, g_Win64Username, -1, g_Win64UsernameW, 17);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue