GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

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

Open tristanbob opened this issue 3 years ago • 2 comments

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

  • This has been reported by a lot of people with different OS and GDevelop versions
  • Windows 11
  • GDevelop 5.0.137

tristanbob avatar Jun 19 '22 19:06 tristanbob

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!

willianholtz avatar Jun 19 '22 20:06 willianholtz

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

image

ClementPasteau avatar Jul 01 '22 14:07 ClementPasteau