Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • EDuke32 EDuke32
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Richard Gobeille
  • EDuke32EDuke32
  • Issues
  • #199

Closed
Open
Created Sep 30, 2021 by NY00123@NY00123Developer

SDL_SetWindowSize should probably not be used at all if the window is resizable

This is mostly relevant to the wip branch as of writing this. I'm not sure this can be reproduced on Windows.

To explain the problem in question:

  • A resizable non-fullscreen window may be created, and its size might be set to be relatively large by the user; Say, the desktop resolution.
  • The window manager, say in Ubuntu, may decide to make the window maximized as a consequence.
  • Therefore, when the user attempts to set a lower window resolution later, SDL_SetWindowSize will fail, as the window is maximized.
  • Despite this, SDL_GetWindowSize may still report the user's last choice afterwards, rather than the actual window dimensions.

This issue might be related, albeit it's for macOS: https://github.com/libsdl-org/SDL/issues/3217

Edited Sep 30, 2021 by NY00123
Assignee
Assign to
Time tracking