Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Non-integer scaling (for small screens)?

A topic by billiam created Mar 12, 2024 Views: 185 Replies: 4
Viewing posts 1 to 2

For web-decker, are there plans to allow (probably blurry) non-integer canvas scaling?

On small screens, the locked sizes can leave a lot of unused space (and tiny elements), that could be better used by filling the screen with the deck, even at the cost of correct pixel scaling. 

The canvas scale itself can be overridden with CSS, but mouse event locations will be incorrect because of it.

Developer (1 edit)

Have you tried "Fullscreen" mode (under the Decker menu)?

(Note that this feature specifically does not work on iPhones, due to an intentional omission of API support in iOS Safari.)

(2 edits)

Thanks!

I have, but (even ios aside) I don't think it fully meets my needs:

  • Switching to fullscreen should require interaction (even if it can be used programatically), because it affects device navigation. So this means clicking possibly very small buttons.
  • It may force landscape mode depending on device, which the user may not want, and usually hides native navigation buttons/menus.
  • Fullscreen seems to cut off part of the deck display on small screens (ex: if width is < 512px)
Developer

I don't see any reasonable way of accommodating displays with extreme aspect ratios automatically. Stretching Decker's display both to a non-integer upscale and a different aspect ratio would be truly hideous.

I'm not sure what you mean about aspect ratio scaling, as I would expect all scaling would maintain the original aspect ratio