RSDKModding / RSDKv3-Decompilation

A Full Decompilation of Sonic CD (2011) & Retro Engine (v3)
Other
591 stars 120 forks source link

Linux Wayland is broken. #245

Open KomaDi opened 2 weeks ago

KomaDi commented 2 weeks ago

Before opening this issue, I ensure that...

Expected Behavior

Game should display normally in fullscreen without blackbars

Actual Behavior

Game is rendering with blackbars not in fullscreen

Steps to Reproduce

start program with SDL_VIDEOBACKEND=wayland env SDL_VIDEOBACKEND=wayland RSDKv3

Screenshots

Screenshot_20240831_232218 Screenshot_20240831_232248

Log File

log.txt

Decompilation Version

a08c065

Game Version

Blit Release (Steam/XBOX 360/PS3)

Game Revision

No response

Renderer Type

Software Renderer

Platform

PC/Void Linux

Additional Comments

I think it's happening because wayland scaling

GeffDev commented 2 weeks ago

This looks like a framebuffer scaling issue, are you using a HiDPI display?

KomaDi commented 2 weeks ago

This looks like a framebuffer scaling issue, are you using a HiDPI display?

I set 120% scaling in kde plasma. In rsdkv5 this bug is fixed, but not here

GeffDev commented 2 weeks ago

In v5 Wayland HiDPI support was fixed in https://github.com/RSDKModding/RSDKv5-Decompilation/commit/fc451f8460f879680c7a88e2e59341955a9140c2. I'm not quite sure if SDL2 has an equivalent to GLFW_SCALE_TO_MONITOR right now.

KomaDi commented 2 weeks ago

In v5 Wayland HiDPI support was fixed in RSDKModding/RSDKv5-Decompilation@fc451f8. I'm not quite sure if SDL2 has an equivalent to GLFW_SCALE_TO_MONITOR right now.

Oh really? I leave issue opened, maybe this problem will be solved.