ruffle-rs / ruffle

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

top line prevents real full screen #15806

Open ousia opened 7 months ago

ousia commented 7 months ago

Describe the bug

Open the attached SWF sample, that contains the following AS2 code:

if (Stage.displayState == "normal") {
    Stage.displayState = "fullScreen";
}
newloader._x= (Stage.width-newloader._width)/2;
newloader._y= (Stage.height-newloader._height)/2;
load_text=Stage.width + ":" + Stage.height;

Ruffle displays this (reducing both width and height of the full screen):

fs-ruffle-fs8

Expected behavior

FP displays at complete full screen:

fs-fp-fs8

Content Location

Sample SWF (extra .txt extension has to be removed first.

Affected platform

Desktop app

Operating system

Fedora 37

Browser

No response

Additional information

No response

torokati44 commented 7 months ago

I think the --no-gui and --letterbox command line options can help with this.

ousia commented 7 months ago

Many thanks for your ultra-fast reply, @torokati44.

BTW, doesn’t full screen imply no GUI (options beside)?

torokati44 commented 7 months ago

Hm, I wouldn't say so... Do you think it should?

ousia commented 7 months ago

I think it should.

After all, (I would say) this is what full screen is all about.

Or what do you get in a web browser or PDF viewer in full screen display?

ousia commented 7 months ago

I have the following PDF document.

This is how Firefox (PDF.js) displays it in full screen (or presentation mode):

pdfjs-fullscreen-fs8

The same happens with Evince:

evince-fs-fs8

Sorry, @torokati44, but I’d rather say that full screen should have --no-gui by default.

Many thanks for your help.