Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 6, 2002
1 parent 88fe75a commit 364d062
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/video/windib/SDL_dibevents.c
Expand Up @@ -28,9 +28,6 @@ static char rcsid =
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#ifdef HAVE_AYGSHELL
#include <aygshell.h>
#endif

#include "SDL_events.h"
#include "SDL_error.h"
Expand Down Expand Up @@ -366,12 +363,6 @@ int DIB_CreateWindow(_THIS)
void DIB_DestroyWindow(_THIS)
{
if ( SDL_windowid == NULL ) {
#ifdef HAVE_AYGSHELL
/* Unhide taskbar, etc. */
SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
#endif
DestroyWindow(SDL_Window);
}
}
15 changes: 12 additions & 3 deletions src/video/windib/SDL_dibvideo.c
Expand Up @@ -29,8 +29,9 @@ static char rcsid =
#include <stdlib.h>
#include <malloc.h>
#include <windows.h>
#ifdef HAVE_AYGSHELL
#include <aygshell.h>
#if defined(WIN32_PLATFORM_PSPC)
#include <aygshell.h> // Add Pocket PC includes
#pragma comment( lib, "aygshell" ) // Link Pocket PC library
#endif

/* Not yet in the mingw32 cross-compile headers */
Expand Down Expand Up @@ -517,7 +518,7 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
video->h = height;
video->pitch = SDL_CalculatePitch(video);

#ifdef HAVE_AYGSHELL
#ifdef WIN32_PLATFORM_PSPC
/* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
if ( flags & SDL_FULLSCREEN ) {
if ( !(prev_flags & SDL_FULLSCREEN) ) {
Expand Down Expand Up @@ -918,6 +919,14 @@ void DIB_VideoQuit(_THIS)
if ( SDL_Window ) {
/* Delete the screen bitmap (also frees screen->pixels) */
if ( this->screen ) {
#ifdef WIN32_PLATFORM_PSPC
if ( this->screen->flags & SDL_FULLSCREEN ) {
/* Unhide taskbar, etc. */
SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
}
#endif
#ifndef NO_CHANGEDISPLAYSETTINGS
if ( this->screen->flags & SDL_FULLSCREEN ) {
ChangeDisplaySettings(NULL, 0);
Expand Down

0 comments on commit 364d062

Please sign in to comment.