mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
fix dpi scaling (for all ?)
This commit is contained in:
parent
bda945218d
commit
affda37d04
2 changed files with 11 additions and 1 deletions
|
@ -8,8 +8,10 @@
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN
|
#ifdef _WIN32
|
||||||
SetProcessDPIAware();
|
SetProcessDPIAware();
|
||||||
|
#else
|
||||||
|
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rpcs3_app app(argc, argv);
|
rpcs3_app app(argc, argv);
|
||||||
|
|
|
@ -136,12 +136,20 @@ void gs_frame::delete_context(void* ctx)
|
||||||
|
|
||||||
int gs_frame::client_width()
|
int gs_frame::client_width()
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
return size().width();
|
return size().width();
|
||||||
|
#else
|
||||||
|
return size().width() * devicePixelRatio();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int gs_frame::client_height()
|
int gs_frame::client_height()
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
return size().height();
|
return size().height();
|
||||||
|
#else
|
||||||
|
return size().height() * devicePixelRatio();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void gs_frame::flip(draw_context_t)
|
void gs_frame::flip(draw_context_t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue