Skip to content

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

C

add UseHighDpiPixmaps option

shun_iwasawa3807327b41fd
diff --git a/toonz/sources/toonz/main.cpp b/toonz/sources/toonz/main.cpp
index adfb61981..b2b431e96 100644
--- a/toonz/sources/toonz/main.cpp
+++ b/toonz/sources/toonz/main.cpp
@@ -268,7 +268,7 @@ int main(int argc, char *argv[]) {
#if QT_VERSION >= 0x050600
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
-
+
QApplication a(argc, argv);
#ifdef MACOSX
@@ -345,6 +345,9 @@ int main(int argc, char *argv[]) {
// weird flickering effects when dragging panel separators.
a.setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
#endif
+
+ // Enable to render smooth icons on high dpi monitors
+ a.setAttribute(Qt::AA_UseHighDpiPixmaps);
// Set the app's locale for numeric stuff to standard C. This is important for
// atof() and similar