src/video/windib/SDL_dibvideo.c
changeset 514 1080bfc4aa96
parent 453 a6fa62b1be09
child 515 230b156829ed
equal deleted inserted replaced
513:8feff52d7f5f 514:1080bfc4aa96
    27 
    27 
    28 #include <stdio.h>
    28 #include <stdio.h>
    29 #include <stdlib.h>
    29 #include <stdlib.h>
    30 #include <malloc.h>
    30 #include <malloc.h>
    31 #include <windows.h>
    31 #include <windows.h>
       
    32 #ifdef HAVE_AYGSHELL
       
    33 #include <aygshell.h>
       
    34 #endif
    32 
    35 
    33 /* Not yet in the mingw32 cross-compile headers */
    36 /* Not yet in the mingw32 cross-compile headers */
    34 #ifndef CDS_FULLSCREEN
    37 #ifndef CDS_FULLSCREEN
    35 #define CDS_FULLSCREEN	4
    38 #define CDS_FULLSCREEN	4
    36 #endif
    39 #endif
   512 	video->flags = 0;	/* Clear flags */
   515 	video->flags = 0;	/* Clear flags */
   513 	video->w = width;
   516 	video->w = width;
   514 	video->h = height;
   517 	video->h = height;
   515 	video->pitch = SDL_CalculatePitch(video);
   518 	video->pitch = SDL_CalculatePitch(video);
   516 
   519 
       
   520 #ifdef HAVE_AYGSHELL
       
   521 	 /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
       
   522 	if ( flags & SDL_FULLSCREEN ) {
       
   523 		if ( !(prev_flags & SDL_FULLSCREEN) ) {
       
   524 			SHFullScreen(SDL_Window, SHFS_HIDETASKBAR);
       
   525 			SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON);
       
   526 			ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_HIDE);
       
   527 		}
       
   528 		video->flags |= SDL_FULLSCREEN;
       
   529 	} else {
       
   530 		if ( prev_flags & SDL_FULLSCREEN ) {
       
   531 			SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
       
   532 			SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
       
   533 			ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
       
   534 		}
       
   535 	}
       
   536 #endif
   517 #ifndef NO_CHANGEDISPLAYSETTINGS
   537 #ifndef NO_CHANGEDISPLAYSETTINGS
   518 	/* Set fullscreen mode if appropriate */
   538 	/* Set fullscreen mode if appropriate */
   519 	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
   539 	if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
   520 		DEVMODE settings;
   540 		DEVMODE settings;
   521 
   541