comparison src/video/windib/SDL_dibvideo.c @ 515:230b156829ed release-1.2.5

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sun, 06 Oct 2002 20:31:34 +0000
parents 1080bfc4aa96
children ed57c876700d
comparison
equal deleted inserted replaced
514:1080bfc4aa96 515:230b156829ed
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 32 #if defined(WIN32_PLATFORM_PSPC)
33 #include <aygshell.h> 33 #include <aygshell.h> // Add Pocket PC includes
34 #pragma comment( lib, "aygshell" ) // Link Pocket PC library
34 #endif 35 #endif
35 36
36 /* Not yet in the mingw32 cross-compile headers */ 37 /* Not yet in the mingw32 cross-compile headers */
37 #ifndef CDS_FULLSCREEN 38 #ifndef CDS_FULLSCREEN
38 #define CDS_FULLSCREEN 4 39 #define CDS_FULLSCREEN 4
515 video->flags = 0; /* Clear flags */ 516 video->flags = 0; /* Clear flags */
516 video->w = width; 517 video->w = width;
517 video->h = height; 518 video->h = height;
518 video->pitch = SDL_CalculatePitch(video); 519 video->pitch = SDL_CalculatePitch(video);
519 520
520 #ifdef HAVE_AYGSHELL 521 #ifdef WIN32_PLATFORM_PSPC
521 /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */ 522 /* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
522 if ( flags & SDL_FULLSCREEN ) { 523 if ( flags & SDL_FULLSCREEN ) {
523 if ( !(prev_flags & SDL_FULLSCREEN) ) { 524 if ( !(prev_flags & SDL_FULLSCREEN) ) {
524 SHFullScreen(SDL_Window, SHFS_HIDETASKBAR); 525 SHFullScreen(SDL_Window, SHFS_HIDETASKBAR);
525 SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON); 526 SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON);
916 { 917 {
917 /* Destroy the window and everything associated with it */ 918 /* Destroy the window and everything associated with it */
918 if ( SDL_Window ) { 919 if ( SDL_Window ) {
919 /* Delete the screen bitmap (also frees screen->pixels) */ 920 /* Delete the screen bitmap (also frees screen->pixels) */
920 if ( this->screen ) { 921 if ( this->screen ) {
922 #ifdef WIN32_PLATFORM_PSPC
923 if ( this->screen->flags & SDL_FULLSCREEN ) {
924 /* Unhide taskbar, etc. */
925 SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
926 SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
927 ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
928 }
929 #endif
921 #ifndef NO_CHANGEDISPLAYSETTINGS 930 #ifndef NO_CHANGEDISPLAYSETTINGS
922 if ( this->screen->flags & SDL_FULLSCREEN ) { 931 if ( this->screen->flags & SDL_FULLSCREEN ) {
923 ChangeDisplaySettings(NULL, 0); 932 ChangeDisplaySettings(NULL, 0);
924 ShowWindow(SDL_Window, SW_HIDE); 933 ShowWindow(SDL_Window, SW_HIDE);
925 } 934 }