mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 08:51:28 +12:00
scale debug overlay based on current dpi settings
Depending on the dpi settings, the debug overlay was almost unreadable. I also took the liberty to refactor some redundant client size calls and to add some margin to the left of the debug text.
This commit is contained in:
parent
44f0ca08e2
commit
83d3658ef0
8 changed files with 62 additions and 31 deletions
|
@ -400,6 +400,11 @@ int gs_frame::client_height()
|
|||
return height() * devicePixelRatio();
|
||||
}
|
||||
|
||||
double gs_frame::client_device_pixel_ratio() const
|
||||
{
|
||||
return devicePixelRatio();
|
||||
}
|
||||
|
||||
void gs_frame::flip(draw_context_t, bool /*skip_frame*/)
|
||||
{
|
||||
static Timer fps_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue