mirror of
https://github.com/joel16/SDL2.git
synced 2025-03-04 09:27:15 +00:00
*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40515
This commit is contained in:
parent
c7ef26ba7a
commit
b34dca4014
@ -28,6 +28,9 @@ 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"
|
||||
@ -363,6 +366,12 @@ 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);
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,9 @@ static char rcsid =
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
#include <windows.h>
|
||||
#ifdef HAVE_AYGSHELL
|
||||
#include <aygshell.h>
|
||||
#endif
|
||||
|
||||
/* Not yet in the mingw32 cross-compile headers */
|
||||
#ifndef CDS_FULLSCREEN
|
||||
@ -514,6 +517,23 @@ SDL_Surface *DIB_SetVideoMode(_THIS, SDL_Surface *current,
|
||||
video->h = height;
|
||||
video->pitch = SDL_CalculatePitch(video);
|
||||
|
||||
#ifdef HAVE_AYGSHELL
|
||||
/* Stuff to hide that $#!^%#$ WinCE taskbar in fullscreen... */
|
||||
if ( flags & SDL_FULLSCREEN ) {
|
||||
if ( !(prev_flags & SDL_FULLSCREEN) ) {
|
||||
SHFullScreen(SDL_Window, SHFS_HIDETASKBAR);
|
||||
SHFullScreen(SDL_Window, SHFS_HIDESIPBUTTON);
|
||||
ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_HIDE);
|
||||
}
|
||||
video->flags |= SDL_FULLSCREEN;
|
||||
} else {
|
||||
if ( prev_flags & SDL_FULLSCREEN ) {
|
||||
SHFullScreen(SDL_Window, SHFS_SHOWTASKBAR);
|
||||
SHFullScreen(SDL_Window, SHFS_SHOWSIPBUTTON);
|
||||
ShowWindow(FindWindow(TEXT("HHTaskBar"),NULL),SW_SHOWNORMAL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifndef NO_CHANGEDISPLAYSETTINGS
|
||||
/* Set fullscreen mode if appropriate */
|
||||
if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user