fix dpi scaling (for all ?)

This commit is contained in:
Megamouse 2017-06-06 18:54:18 +02:00 committed by Ani
parent bda945218d
commit affda37d04
2 changed files with 11 additions and 1 deletions

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);

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)