| Summary: | Fullscreen broken | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Will <willeom> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | CC: | lubosz |
| Version: | 2.0.0 | ||
| Hardware: | x86 | ||
| OS: | Windows Vista | ||
| Attachments: | Test program | ||
|
Description
Will
2009-01-01 14:38:51 UTC
I've put in the first pass of fullscreen support for SDL 1.3. Can you try this with the latest snapshot? http://www.libsdl.org/tmp/SDL-1.3.zip Thanks! (In reply to comment #1) > I've put in the first pass of fullscreen support for SDL 1.3. Can you try this > with the latest snapshot? > http://www.libsdl.org/tmp/SDL-1.3.zip > > Thanks! Hey that's great to hear! I am currently preparing for my finals next week but after that I will be glad to give it another shot (Don't have working code to test it ATM). Any luck with this yet? Created attachment 482 [details]
Test program
(In reply to comment #3) > Any luck with this yet? I whipped up this test program in Code::Blocks on windows to see if it works. it appears if i initialize it to full screen that it does work but I still cannot seem to switch it between windowed mode and back. When running the program, pressing the space bar is supposed switch it to full screen and back. This isn't the code I was using when I found the bug so I hope its ok. I can confirm this bug on Ubuntu 10.04 64bit with latest SDL from hg. NVIDIA 256.52 stable driver kernel 2.6.32-25 X.Org X Server 1.7.6 I also have this issue on my 64bit archlinux X server 1.9 and kernel 2.6.35. Fullscreen works from initialisation: flags |= SDL_WINDOW_FULLSCREEN; But the SDL_SetWindowFullscreen is buggy. When I set the window resolution to my native resolution, it does nothing. It changes the resolution, if different, but does not have a fullscreen window. Fullscreen works on Windows 7 Home Ultimate 64-bit, tested just now. Has this been fixed, or is it a bug exclusively on Vista? (In reply to comment #7) > Fullscreen works on Windows 7 Home Ultimate 64-bit, tested just now. > Has this been fixed, or is it a bug exclusively on Vista? Sorry, I only tested on creating fullscreen. Setting fullscreen later is still broken. (In reply to comment #7) > Fullscreen works on Windows 7 Home Ultimate 64-bit, tested just now. > Has this been fixed, or is it a bug exclusively on Vista? Sorry, I only tested on creating fullscreen. Setting fullscreen later is still broken.(In reply to comment #8) > (In reply to comment #7) > > Fullscreen works on Windows 7 Home Ultimate 64-bit, tested just now. > > Has this been fixed, or is it a bug exclusively on Vista? > > Sorry, I only tested on creating fullscreen. Setting fullscreen later is still > broken. Also, initializing fullscreen and switching to normal later doesn't work quite right, either (at least not on Windows 7). In SDL_SetWindowFullscreen, nothing is actually changed on the window except its flags. The calls to SDL_UpdateFullscreenMode only serve to minimize other fullscreen windows and change the display mode as required; it doesn't make the window fullscreen either. I think each video bootstrap will require a function to switch to fullscreen and back to resolve this issue properly. I've done a bunch of work on fullscreen mode handling in the latest snapshot: http://www.libsdl.org/tmp/SDL-1.3.zip Can you give it a look and see if your bug is fixed? Thanks! (In reply to comment #10) > I've done a bunch of work on fullscreen mode handling in the latest snapshot: > http://www.libsdl.org/tmp/SDL-1.3.zip > > Can you give it a look and see if your bug is fixed? > > Thanks! Works great when starting from windowed mode now but when I create a window with the SDL_WINDOW_FULLSCREEN flag and try to go out of it stays fullscreen but the drawing area shrinks to the size of the would be window with other applications behind it being unclickable. --Bill (In reply to comment #10) > I've done a bunch of work on fullscreen mode handling in the latest snapshot: > http://www.libsdl.org/tmp/SDL-1.3.zip > > Can you give it a look and see if your bug is fixed? > > Thanks! Also looks like when starting from windowed mode switching to fullscreen and back does not preserve the original size of the window. --Bill Fullscreen changing works during runtime for me now on current hg. Tested on Archlinux, current Nivida driver, OpenGL 3 context. Thanks for fixing this. :) |