Ver código fonte

Merge pull request #640 from DDRBoxman/HiDPI

UI: Enable HiDPI scaling.
Jim 9 anos atrás
pai
commit
a80d334cf6
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      UI/obs-app.cpp

+ 2 - 0
UI/obs-app.cpp

@@ -1311,6 +1311,8 @@ static int run_program(fstream &logFile, int argc, char *argv[])
 
 
 	QCoreApplication::addLibraryPath(".");
 	QCoreApplication::addLibraryPath(".");
 
 
+	QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
 	OBSApp program(argc, argv, profilerNameStore.get());
 	OBSApp program(argc, argv, profilerNameStore.get());
 	try {
 	try {
 		program.AppInit();
 		program.AppInit();