Farama-Foundation / Farama-Foundation/Arcade-Learning-Environment

Resize window when using SDL/display_screen

Open
#446 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
477
Avg merge
11h 11m
Merged PRs (30d)
3

Description

Using `display_screen` on a `1920x1080` display opens a window taller than the display itself. Resizing the window is also disabled. This is on Ubuntu `21.10`.

Is there any way to scale or adjust the DPI of the SDL window? Or maybe disable HiDPI if it's enabled by default? Looking through the repo I couldn't find anything. Also usual environment flags I've been using in the past with other applications, such as `GDK_SCALE=0.5 GDK_DPI_SCALE=0.5` are not working in this instance.

Thank you!

Contributor guide

Open the contributing guide

Research direction

Start by tracing the display_screen entry point and its SDL window setup, then reproduce the oversized, non-resizable window on Ubuntu 21.10 at 1920x1080. Investigate whether window scaling, DPI handling, or HiDPI defaults control the behavior; done means the window fits the display and resizing or an explicit scaling option works.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.