src/video/windib/SDL_dibvideo.c
changeset 514 1080bfc4aa96
parent 453 a6fa62b1be09
child 515 230b156829ed
     1.1 --- a/src/video/windib/SDL_dibvideo.c	Sun Oct 06 18:47:20 2002 +0000
     1.2 +++ b/src/video/windib/SDL_dibvideo.c	Sun Oct 06 20:25:05 2002 +0000
     1.3 @@ -29,6 +29,9 @@
     1.4  #include <stdlib.h>
     1.5  #include <malloc.h>
     1.6  #include <windows.h>
     1.7 +#ifdef HAVE_AYGSHELL
     1.8 +#include <aygshell.h>
     1.9 +#endif
    1.10  
    1.11  /* Not yet in the mingw32 cross-compile headers */
    1.12  #ifndef CDS_FULLSCREEN
    1.13 @@ -514,6 +517,23 @@
    1.14  	video->h = height;
    1.15  	video->pitch = SDL_CalculatePitch(video);
    1.16  
    1.17 +#ifdef HAVE_AYGSHELL
    1.18 +	 /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
    1.19 +	if ( flags & SDL_FULLSCREEN ) {
    1.20 +		if ( !(prev_flags & SDL_FULLSCREEN) ) {
    1.21 +			SHFullScreen(SDL_Window, SHFS_HIDETASKBAR);
    1.22 +			SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON);
    1.23 +			ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_HIDE);
    1.24 +		}
    1.25 +		video->flags |= SDL_FULLSCREEN;
    1.26 +	} else {
    1.27 +		if ( prev_flags & SDL_FULLSCREEN ) {
    1.28 +			SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
    1.29 +			SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
    1.30 +			ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
    1.31 +		}
    1.32 +	}
    1.33 +#endif
    1.34  #ifndef NO_CHANGEDISPLAYSETTINGS
    1.35  	/* Set fullscreen mode if appropriate */
    1.36  	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {