Skip to content

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

C

fix hide icons in scale 125 %

shun-iwasawad9989e9d8fc2
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp
index 96048cd08..7295bd62b 100644
--- a/toonz/sources/toonz/main.cpp
+++ b/toonz/sources/toonz/main.cpp
@@ -406,6 +406,15 @@ int main(int argc, char *argv[]) {
a.setAttribute(Qt::AA_CompressTabletEvents);
#endif
+#ifdef _WIN32
+ // This attribute is set to make menubar icon to be always (16 x devPixRatio).
+ // Without this attribute the menu bar icon size becomes the same as tool bar
+ // when Windows scale is in 125%. Currently hiding the menu bar icon is done
+ // by setting transparent pixmap only in menu bar icon size. So the size must
+ // be different between for menu bar and for tool bar.
+ a.setAttribute(Qt::AA_Use96Dpi);
+#endif
+
// Set the app's locale for numeric stuff to standard C. This is important for
// atof() and similar
// calls that are locale-dependant.