Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Update imageutils.cpp

JP Parks31db88ac5c7f
diff --git a/toonz/sources/toonzqt/imageutils.cpp b/toonz/sources/toonzqt/imageutils.cpp
index 1ee0bf9c5..b71cf9543 100644
--- a/toonz/sources/toonzqt/imageutils.cpp
+++ b/toonz/sources/toonzqt/imageutils.cpp
@@ -895,6 +895,10 @@ FullScreenWidget::FullScreenWidget(QWidget *parent) : QWidget(parent) {
layout->setSpacing(0);
setLayout(layout);
+
+#ifdef _WIN32
+ this->winId();
+#endif
}
//---------------------------------------------------------------------------------
@@ -1035,7 +1039,6 @@ bool FullScreenWidget::toggleFullScreen(
this->window()->windowHandle()->setScreen(ptrScreenThisWindowIsOn);
// http://doc.qt.io/qt-5/windows-issues.html#fullscreen-opengl-based-windows
- this->winId();
QWindowsWindowFunctions::setHasBorderInFullScreen(
this->windowHandle(), true);