Browse Source

UI: Enable HiDPI scaling.

This makes the app much more usable on hidpi screen devices like the
surface.
Colin Edwards 9 years ago
parent
commit
c4eebbba54
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UI/obs-app.cpp

+ 2 - 0
UI/obs-app.cpp

@@ -1309,6 +1309,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();