*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Oct 2002 20:25:05 +0000
changeset 5141080bfc4aa96
parent 513 8feff52d7f5f
child 515 230b156829ed
*** empty log message ***
src/video/windib/SDL_dibevents.c
src/video/windib/SDL_dibvideo.c
     1.1 --- a/src/video/windib/SDL_dibevents.c	Sun Oct 06 18:47:20 2002 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Sun Oct 06 20:25:05 2002 +0000
     1.3 @@ -28,6 +28,9 @@
     1.4  #include <stdlib.h>
     1.5  #include <stdio.h>
     1.6  #include <windows.h>
     1.7 +#ifdef HAVE_AYGSHELL
     1.8 +#include <aygshell.h>
     1.9 +#endif
    1.10  
    1.11  #include "SDL_events.h"
    1.12  #include "SDL_error.h"
    1.13 @@ -363,6 +366,12 @@
    1.14  void DIB_DestroyWindow(_THIS)
    1.15  {
    1.16  	if ( SDL_windowid == NULL ) {
    1.17 +#ifdef HAVE_AYGSHELL
    1.18 +		/* Unhide taskbar, etc. */
    1.19 +		SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
    1.20 +		SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
    1.21 +		ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
    1.22 +#endif
    1.23  		DestroyWindow(SDL_Window);
    1.24  	}
    1.25  }
     2.1 --- a/src/video/windib/SDL_dibvideo.c	Sun Oct 06 18:47:20 2002 +0000
     2.2 +++ b/src/video/windib/SDL_dibvideo.c	Sun Oct 06 20:25:05 2002 +0000
     2.3 @@ -29,6 +29,9 @@
     2.4  #include <stdlib.h>
     2.5  #include <malloc.h>
     2.6  #include <windows.h>
     2.7 +#ifdef HAVE_AYGSHELL
     2.8 +#include <aygshell.h>
     2.9 +#endif
    2.10  
    2.11  /* Not yet in the mingw32 cross-compile headers */
    2.12  #ifndef CDS_FULLSCREEN
    2.13 @@ -514,6 +517,23 @@
    2.14  	video->h = height;
    2.15  	video->pitch = SDL_CalculatePitch(video);
    2.16  
    2.17 +#ifdef HAVE_AYGSHELL
    2.18 +	 /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
    2.19 +	if ( flags & SDL_FULLSCREEN ) {
    2.20 +		if ( !(prev_flags & SDL_FULLSCREEN) ) {
    2.21 +			SHFullScreen(SDL_Window, SHFS_HIDETASKBAR);
    2.22 +			SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON);
    2.23 +			ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_HIDE);
    2.24 +		}
    2.25 +		video->flags |= SDL_FULLSCREEN;
    2.26 +	} else {
    2.27 +		if ( prev_flags & SDL_FULLSCREEN ) {
    2.28 +			SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
    2.29 +			SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
    2.30 +			ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
    2.31 +		}
    2.32 +	}
    2.33 +#endif
    2.34  #ifndef NO_CHANGEDISPLAYSETTINGS
    2.35  	/* Set fullscreen mode if appropriate */
    2.36  	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {