# DirectX11 + WM\_GETMINMAXINFO

**URL:** <https://discourse.libsdl.org/t/directx11-wm-getminmaxinfo/20192>\
**Category:** SDL Development\
**Created:** [November 30, 2013, 9:14pm UTC](https://discourse.libsdl.org/t/directx11-wm-getminmaxinfo/20192 "2013-11-30T21:14:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enlight](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Enlight](https://discourse.libsdl.org/u/Enlight)\
**Post date:** [November 30, 2013, 9:14pm UTC](https://discourse.libsdl.org/t/directx11-wm-getminmaxinfo/20192/1 "2013-11-30T21:14:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![slime](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/slime/32/3845_2.png) [@slime](https://discourse.libsdl.org/u/slime)\
**Post date:** [December 1, 2013, 7:29pm UTC](https://discourse.libsdl.org/t/directx11-wm-getminmaxinfo/20192/2 "2013-12-01T19:29:03Z")

</div>

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)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Enlight](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/258eb7/32.png) [@Enlight](https://discourse.libsdl.org/u/Enlight)\
**Post date:** [December 2, 2013, 2:08am UTC](https://discourse.libsdl.org/t/directx11-wm-getminmaxinfo/20192/3 "2013-12-02T02:08:22Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [December 2, 2013, 5:42pm UTC](https://discourse.libsdl.org/t/directx11-wm-getminmaxinfo/20192/4 "2013-12-02T17:42:20Z")

</div>

Can you try the latest SDL snapshot?  
[http://www.libsdl.org/tmp/SDL-2.0.zipOn](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)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
