Add some paranoid checks around touch IDs that probably won't help #9647

Also adds LunaMoo to credits list.
This commit is contained in:
Henrik Rydgard committed 2017-04-30 08:57:44 +02:00
1 parent 4f6b9c1fd2
commit 9a1cd5a5e8
6 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ static int ScreenDPI() {
HDC screenDC = GetDC(nullptr);
int dotsPerInch = GetDeviceCaps(screenDC, LOGPIXELSY);
ReleaseDC(nullptr, screenDC);
return dotsPerInch;
return dotsPerInch ? dotsPerInch : 96;
}
#endif
#endif