Coder Social home page Coder Social logo

Comments (3)

friesencr avatar friesencr commented on May 4, 2024

This only happens after i maximize the window before switching to fullscreen. I am also using dual monitors.

from urho3d.

cadaver avatar cadaver commented on May 4, 2024

It actually behaves differently on OpenGL and Direct3D.

On Direct3D it will fail to set a fullscreen mode when the window is maximized (when maximized, the window size is something "uneven" like 1910x1070 which is not a valid fullscreen mode)

On OpenGL it will set the closest fullscreen mode, and when it returns to windowed mode, the window's client area is set to 1920x1080 which causes the borders or the rest of the desktop not to be visible. But it's still actually in windowed mode.

I think it would be easy to make Direct3D mimic the OpenGL behavior, by searching for the closest fullscreen mode. Possibly the "proper" thing to do would be to remember the last windowed size, but that implies additional state which would make the resolution switching logic more complex, and is therefore undesirable.

In an actual game I'd probably disallow free window resizing and only allow window sizes from the fullscreen resolutions list.

from urho3d.

friesencr avatar friesencr commented on May 4, 2024

In an actual game I'd probably disallow free window resizing and only allow window sizes from the fullscreen resolutions list.

This is how virtual every game behaves and what I expect.

This only crummy thing is that the window handles disappear making it impossible to resize the window again.

from urho3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.