src/video/windib/SDL_dibvideo.c
changeset 515 230b156829ed
parent 514 1080bfc4aa96
child 766 ed57c876700d
     1.1 --- a/src/video/windib/SDL_dibvideo.c	Sun Oct 06 20:25:05 2002 +0000
     1.2 +++ b/src/video/windib/SDL_dibvideo.c	Sun Oct 06 20:31:34 2002 +0000
     1.3 @@ -29,8 +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 +#if defined(WIN32_PLATFORM_PSPC)
    1.10 +#include <aygshell.h>                      // Add Pocket PC includes
    1.11 +#pragma comment( lib, "aygshell" )         // Link Pocket PC library
    1.12  #endif
    1.13  
    1.14  /* Not yet in the mingw32 cross-compile headers */
    1.15 @@ -517,7 +518,7 @@
    1.16  	video->h = height;
    1.17  	video->pitch = SDL_CalculatePitch(video);
    1.18  
    1.19 -#ifdef HAVE_AYGSHELL
    1.20 +#ifdef WIN32_PLATFORM_PSPC
    1.21  	 /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
    1.22  	if ( flags & SDL_FULLSCREEN ) {
    1.23  		if ( !(prev_flags & SDL_FULLSCREEN) ) {
    1.24 @@ -918,6 +919,14 @@
    1.25  	if ( SDL_Window ) {
    1.26  		/* Delete the screen bitmap (also frees screen->pixels) */
    1.27  		if ( this->screen ) {
    1.28 +#ifdef WIN32_PLATFORM_PSPC
    1.29 +			if ( this->screen->flags & SDL_FULLSCREEN ) {
    1.30 +				/* Unhide taskbar, etc. */
    1.31 +				SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
    1.32 +				SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
    1.33 +				ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
    1.34 +			}
    1.35 +#endif
    1.36  #ifndef NO_CHANGEDISPLAYSETTINGS
    1.37  			if ( this->screen->flags & SDL_FULLSCREEN ) {
    1.38  				ChangeDisplaySettings(NULL, 0);