summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-26 21:47:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-27 01:05:52 +0200
commitdc322bc02965565c13fdc9b14093d6b936abe833 (patch)
treed60bf9889da3ab13af758a31fd719c0ffefb1d62 /facetracknoir/main.cpp
parent881bd1ae68eb11ae5621789be7aee6677bf4f447 (diff)
Force font DPI right way
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r--facetracknoir/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp
index d7b94506..36bccfad 100644
--- a/facetracknoir/main.cpp
+++ b/facetracknoir/main.cpp
@@ -54,20 +54,19 @@ bool dumpCallback(const wchar_t* dump_path,
int main(int argc, char** argv)
{
- QApplication::setAttribute(Qt::AA_X11InitThreads, true);
#ifdef OPENTRACK_BREAKPAD
auto handler = new ExceptionHandler(L".", nullptr, dumpCallback, nullptr, -1);
#endif
QApplication app(argc, argv);
- FaceTrackNoIR w;
QFont font;
font.setFamily(font.defaultFamily());
font.setPointSize(10);
font.setPixelSize(10*4/3);
- w.setFont(font);
- app.setFont(font);
- QDesktopWidget desktop;
+ QApplication::setFont(font);
+ QApplication::setAttribute(Qt::AA_X11InitThreads, true);
+ FaceTrackNoIR w;
+ QDesktopWidget desktop;
w.move(desktop.screenGeometry().width()/2-w.width()/2, 100);
w.show();