mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-28 22:13:24 +00:00
fix dpi scaling (for all ?)
This commit is contained in:
parent
bda945218d
commit
affda37d04
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user