Fixed compiling on Windows CE
This commit is contained in:
parent
1667e9cf70
commit
5920369169
3 changed files with 82 additions and 66 deletions
|
@ -23,7 +23,9 @@
|
|||
|
||||
#include "SDL_windowsvideo.h"
|
||||
|
||||
#ifndef _WIN32_WCE
|
||||
#define HAVE_GETDIBITS
|
||||
#endif
|
||||
|
||||
int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
|
||||
{
|
||||
|
|
|
@ -452,7 +452,37 @@ WIN_SetWindowSize(_THIS, SDL_Window * window)
|
|||
h = (rect.bottom - rect.top);
|
||||
|
||||
SetWindowPos(hwnd, top, 0, 0, w, h, (SWP_NOCOPYBITS | SWP_NOMOVE));
|
||||
}
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
void WINCE_ShowWindow(_THIS, SDL_Window* window, int visible)
|
||||
{
|
||||
SDL_WindowData* windowdata = (SDL_WindowData*) window->driverdata;
|
||||
SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
|
||||
|
||||
if(visible) {
|
||||
if(window->flags & SDL_WINDOW_FULLSCREEN) {
|
||||
if(videodata->SHFullScreen)
|
||||
videodata->SHFullScreen(windowdata->hwnd, SHFS_HIDETASKBAR | SHFS_HIDESTARTICON | SHFS_HIDESIPBUTTON);
|
||||
|
||||
ShowWindow(FindWindow(TEXT("HHTaskBar"), NULL), SW_HIDE);
|
||||
}
|
||||
|
||||
ShowWindow(windowdata->hwnd, SW_SHOW);
|
||||
SetForegroundWindow(windowdata->hwnd);
|
||||
} else {
|
||||
ShowWindow(windowdata->hwnd, SW_HIDE);
|
||||
|
||||
if(window->flags & SDL_WINDOW_FULLSCREEN) {
|
||||
if(videodata->SHFullScreen)
|
||||
videodata->SHFullScreen(windowdata->hwnd, SHFS_SHOWTASKBAR | SHFS_SHOWSTARTICON | SHFS_SHOWSIPBUTTON);
|
||||
|
||||
ShowWindow(FindWindow(TEXT("HHTaskBar"), NULL), SW_SHOW);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif /* _WIN32_WCE */
|
||||
|
||||
void
|
||||
WIN_ShowWindow(_THIS, SDL_Window * window)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue