浏览代码

Merge pull request #640 from DDRBoxman/HiDPI

UI: Enable HiDPI scaling.
Jim 9 年之前
父节点
当前提交
a80d334cf6
共有 1 个文件被更改,包括 2 次插入0 次删除
  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(".");
 
+	QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
 	OBSApp program(argc, argv, profilerNameStore.get());
 	try {
 		program.AppInit();