OpenToonz - An open-source full-featured 2D animation creation software
C
Fix starting OT in fullscreen mode
manongjohna513242252df
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cppindex d74c48511..3c9d6a612 100644--- a/toonz/sources/toonz/main.cpp+++ b/toonz/sources/toonz/main.cpp@@ -620,6 +620,11 @@ int main(int argc, char *argv[]) {/*-- Layoutファイル名をMainWindowのctorに渡す --*/MainWindow w(argumentLayoutFileName);+#ifdef _WIN32+ // http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows+ QWindowsWindowFunctions::setHasBorderInFullScreen(w.windowHandle(), true);+#endif+splash.showMessage(offsetStr + "Loading style sheet ...", Qt::AlignCenter,Qt::white);a.processEvents();@@ -663,11 +668,6 @@ int main(int argc, char *argv[]) {if (Preferences::instance()->isLatestVersionCheckEnabled())w.checkForUpdates();-#ifdef _WIN32- // http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows- QWindowsWindowFunctions::setHasBorderInFullScreen(w.windowHandle(), true);-#endif-w.show();// Show floating panels only after the main window has been shown