4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
9.38k stars 802 forks source link

Preview window cuts off part of the game (desktop only, update resolution enabled) #4051

Open tristanbob opened 2 years ago

tristanbob commented 2 years ago

Describe the bug

When previewing a game on desktop app with default "update resolution (width)" enabled, part of the game is not visible in the default size of the preview window.

This problem does NOT exist in the GDevelop web app (see video for comparison:

Video

https://user-images.githubusercontent.com/8879811/174497864-fa44e131-444b-4f50-8d33-cd80fecf970d.mp4

To Reproduce

Steps to reproduce the behavior:

  1. Using desktop app, create a game with default resolution settings: 800x600, update resolution (width) enabled
  2. Add objects around the border of the game
  3. Preview game
  4. Right border will have ~28 pixels off-screen

Project files

Preview Border Test.zip

Other details

willianholtz commented 2 years ago

I had already noticed this, but I didn't think it was some kind of bug, I thought it was on purpose for those who use it in web and mobile mode!

ClementPasteau commented 2 years ago

That's confusing, I've tried your project but the preview is well centered on mine 🤔 MacOS - 5.0.138

image