Skip to content

Commit

Permalink
Enable scaling on windows by default
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Sep 6, 2024
1 parent 798ae21 commit 3a69f43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arcade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def configure_logging(level: int | None = None):
if sys.platform == "darwin" or os.environ.get("ARCADE_HEADLESS") or utils.is_raspberry_pi():
pyglet.options.shadow_window = False # type: ignore # pending https://github.com/pyglet/pyglet/issues/1164

# Enable HiDPI support on Windows
if sys.platform == "win32":
pyglet.options.scale_with_dpi = True # type: ignore # pending https://github.com/pyglet/pyglet/pull/1202

# Use the old gdi fonts on windows until directwrite is fast/stable
# pyglet.options.win32_gdi_font = True

Expand Down

0 comments on commit 3a69f43

Please sign in to comment.