mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
another high dpi fix which fixes some resizing issues.
This commit is contained in:
parent
da4bd8120b
commit
1207b082dc
@ -65,7 +65,11 @@ def on_game_load(game: Game | None) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def run_ui(game: Optional[Game], new_map: bool, dev: bool) -> None:
|
def run_ui(game: Optional[Game], new_map: bool, dev: bool) -> 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 = QApplication(sys.argv)
|
||||||
|
|
||||||
app.setAttribute(Qt.AA_DisableWindowContextHelpButton)
|
app.setAttribute(Qt.AA_DisableWindowContextHelpButton)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user