1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 12:21:44 +00:00
Ryujinx/Ryujinx.Common/System
sharmander d5081e3f93
Make windows DPI aware to display properly on high-resolution screens. (#1983)
* Make Windows DPI aware to display properly on high-resolution screens.

* remove empty line

* Don't use app manifest, set process dpi aware programatically.

Store variables in Program.cs for use instead of re-creating them per class/ method.

* Fix for linux/osx

* Add braces

* Re-use manifest. It appears to be required on linux.

* Undo previous commit -- it appears linux was simply never affected.

* Addressed AcK's comments

* Remove unused usings

* Address comments by AcK #2

* Re-order

* Move FromHwnd call to ForceDpiAware class. Wrap in Try-Catch to prevent crashes on systems that don't support it.

* Additional code cleanup

* Remove "global::" reference.
2021-02-20 01:34:41 +01:00
..
DisplaySleep.cs Prevent Display Sleep on Windows while running a game (#1850) 2021-01-25 10:02:00 +11:00
ForceDedicatedGpu.cs gui: Refactoring Part 1 (#1859) 2021-01-08 09:14:13 +01:00
ForceDpiAware.cs Make windows DPI aware to display properly on high-resolution screens. (#1983) 2021-02-20 01:34:41 +01:00
WindowsMultimediaTimerResolution.cs gui: Refactoring Part 1 (#1859) 2021-01-08 09:14:13 +01:00