Mercurial > sdl-ios-xcode
diff src/video/windib/SDL_dibvideo.c @ 514:1080bfc4aa96
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 06 Oct 2002 20:25:05 +0000 |
parents | a6fa62b1be09 |
children | 230b156829ed |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c Sun Oct 06 18:47:20 2002 +0000 +++ b/src/video/windib/SDL_dibvideo.c Sun Oct 06 20:25:05 2002 +0000 @@ -29,6 +29,9 @@ #include <stdlib.h> #include <malloc.h> #include <windows.h> +#ifdef HAVE_AYGSHELL +#include <aygshell.h> +#endif /* Not yet in the mingw32 cross-compile headers */ #ifndef CDS_FULLSCREEN @@ -514,6 +517,23 @@ video->h = height; video->pitch = SDL_CalculatePitch(video); +#ifdef HAVE_AYGSHELL + /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */ + if ( flags & SDL_FULLSCREEN ) { + if ( !(prev_flags & SDL_FULLSCREEN) ) { + SHFullScreen(SDL_Window, SHFS_HIDETASKBAR); + SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON); + ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_HIDE); + } + video->flags |= SDL_FULLSCREEN; + } else { + if ( prev_flags & SDL_FULLSCREEN ) { + SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR); + SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON); + ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL); + } + } +#endif #ifndef NO_CHANGEDISPLAYSETTINGS /* Set fullscreen mode if appropriate */ if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {