mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
another high dpi fix which fixes some resizing issues.
This commit is contained in:
parent
30fe1ca6af
commit
8422823921
@ -57,7 +57,10 @@ def inject_custom_payloads(user_path: Path) -> None:
|
||||
|
||||
|
||||
def run_ui(game: Optional[Game]) -> None:
|
||||
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1" # Potential fix for 4K screens
|
||||
os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "1" # Potential fix for 4K screens
|
||||
QApplication.setHighDpiScaleFactorRoundingPolicy(
|
||||
Qt.HighDpiScaleFactorRoundingPolicy.PassThrough
|
||||
)
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
app.setAttribute(Qt.AA_DisableWindowContextHelpButton)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user