ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.58k stars 810 forks source link

Ruffle Linux incorrectly scaling flash titles. #15157

Open Spikestuff opened 8 months ago

Spikestuff commented 8 months ago

Describe the bug

Something I noticed as it's more apparent in the --no-gui field compared to a standard open, is that ruffle incorrectly loads titles by not launching them at their native resolution.

Samsara's Room is being used here as an example, a 720x480 title. This will happen to any title. But here in the Linux release of Ruffle it's being displayed at 800x534 (and that's not counting the 66 pixels total above and below the picture) a random 111% larger.

image

Expected behavior

Here's the Windows version running the --no-gui command correctly: image

Content Location

The title tested was Samsara's Room but this issue persists with any other title.

Affected platform

Desktop app

Operating system

Ubuntu 22.04.3 LTS (Jammy Jellyfish)

Browser

No response

Additional information

I validated my Display Settings in Linux, and it's 2560x1440 @ 100% Window Scaling. I also validated ScummVM for sanity reasons, and its Linux window matches Windows when launching a title that I had on hand being Riven.

torokati44 commented 8 months ago

I think this is #8870.

torokati44 commented 8 months ago

The window is 800x600, which is a sort of "factory default" of Ruffle, and the content is resized accordingly, with the black bars added as letterboxing to keep the original spect ratio.