DirectX11 + WM_GETMINMAXINFO

Hi, I just integrated SDL into my DX11 3D Engine, and I noticed that when I try to enter full screen (1920x1080) SDL is modifying my full screen resolution to something else, like 1916x1118 (if I recall correctly).

I didn’t have this problem before integrating SDL so I looking at the SDL WinProc I found a handler for WM_GETMINMAXINFO.

Removing that handler solved the problem. Now 2 questions:

  1. Is there a better way to do this? like telling SDL I’m going fullscreen so it can recognize the proper full screen window size?

  2. By removing the WM_GETMINMAXINFO handler, what SDL functionallity I’m affecting ?

Thanks.

Is that SDL 2.0.1 or the latest code from Mercurial? Some issues on Windows related to window auto-resizing have been fixed since 2.0.1?s release.On Nov 30, 2013, at 5:14 PM, Enlight wrote:

Hi, I just integrated SDL into my DX11 3D Engine, and I noticed that when I try to enter full screen (1920x1080) SDL is modifying my full screen resolution to something else, like 1916x1118 (if I recall correctly).

I didn’t have this problem before integrating SDL so I looking at the SDL WinProc I found a handler for WM_GETMINMAXINFO.

Removing that handler solved the problem. Now 2 questions:

  1. Is there a better way to do this? like telling SDL I’m going fullscreen so it can recognize the proper full screen window size?

  2. By removing the WM_GETMINMAXINFO handler, what SDL functionallity I’m affecting ?

Thanks.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Is that SDL 2.0.1 or the latest code from Mercurial? Some issues on Windows related to window auto-resizing have been fixed since 2.0.1?s release.

SDL 2.0.0

Can you try the latest SDL snapshot?
http://www.libsdl.org/tmp/SDL-2.0.zipOn Sun, Dec 1, 2013 at 6:08 PM, Enlight wrote:

Quote:

Is that SDL 2.0.1 or the latest code from Mercurial? Some issues on
Windows related to window auto-resizing have been fixed since 2.0.1?s
release.

SDL 2.0.0


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org