fix dpi scaling (for all ?)

This commit is contained in:
Megamouse authored and Ani committed 2017-06-07 00:01:45 +01:00
1 parent bda945218d
commit affda37d04
2 files changed
+11 -1

No files matched your search

+3 -1
View File
@@ -8,8 +8,10 @@
int main(int argc, char** argv)
{
#ifdef Q_OS_WIN
#ifdef _WIN32
SetProcessDPIAware();
#else
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
#endif
rpcs3_app app(argc, argv);
+8
View File
@@ -136,12 +136,20 @@ void gs_frame::delete_context(void* ctx)
int gs_frame::client_width()
{
#ifdef _WIN32
return size().width();
#else
return size().width() * devicePixelRatio();
#endif
}
int gs_frame::client_height()
{
#ifdef _WIN32
return size().height();
#else
return size().height() * devicePixelRatio();
#endif
}
void gs_frame::flip(draw_context_t)