| Summary: | Bordered Window not working on 2.0.6 | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Byron <byron.goodman> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.6 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
I've done more testing, and it appears the behavior is different between VC++ and MingW. What is happening is the title bar is being moved above the title displays 0 height position. I have switched to MingW in the past few days. I'm not able to reproduce this here. Can you reproduce it with using testsprite2 from the latest SDL snapshot? http://www.libsdl.org/tmp/SDL-2.0.zip Thanks! Yes, I will test it out. I've been using Mingw-w64 7.1.0. I've been noticing other issues, so I'm starting to wonder if there is a compiler issue. I'll dig into this later this weekend so I can give you better details. This problem does not exist with VC++ 2015 or 2017. The SDL 2.0.6 release DLL was built with mingw-64, and I just tested the 32-bit DLL with testsprite2, and didn't see any problems here. I've tested what you sent and it still puts the title bar above the desktop. The borders are there, but you can't grab the top. n Which version of Mingw-w64 are you using? I'll test with that one as well. Let me make sure I'm describing this. The client rect of the window is positioned at 0,0, the title bar should be positioned at 0,0. Oh, I see what you mean. That's actually intended behavior. You're setting the position of the client area at 0,0 in the code below. If you want it centered, you should use SDL_WINDOWPOS_CENTERED, or if you don't care, but want the title bar visible, you should use SDL_WINDOWPOS_UNDEFINED. You can run testsprite2 --position 0,0 to see this behavior with any SDL.dll, built with either mingw-w64 or Visual Studio. That isn't the same behavior for VC++, but okay. I'll work around it. |
SDL_Window* pWindow = SDL_CreateWindow( TITLE, 0, 0, 1024, 768, //SDL_WINDOW_FULLSCREEN | SDL_WINDOW_OPENGL ); Does not create a bordered window, also SDL_SetWindowBordered(pWindow, SDL_TRUE); has no effect.