Line feed changes.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2093 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2010-08-11 22:44:03 +00:00
parent 2818445bf2
commit 657a296b32
2 changed files with 28 additions and 28 deletions

View File

@ -17,7 +17,7 @@
// $Id$
//============================================================================
#include <SDL_syswm.h>
#include <SDL_syswm.h>
#include <fstream>
#include "bspf.hxx"
@ -91,24 +91,24 @@ OSystemWin32::~OSystemWin32()
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void OSystemWin32::setAppWindowPos(int x, int y, int w, int h)
{
SDL_SysWMinfo sdl_info;
memset(&sdl_info, 0, sizeof(sdl_info));
SDL_VERSION (&sdl_info.version);
if(SDL_GetWMInfo(&sdl_info) <= 0)
return;
// The following mostly comes from SDL_dx5video.c
HWND window = sdl_info.window;
RECT bounds;
bounds.left = x;
bounds.top = y;
bounds.right = x + w;
bounds.bottom = y + h;
AdjustWindowRectEx(&bounds, GetWindowLong(window, GWL_STYLE), (GetMenu(window) != NULL), 0);
SetWindowPos(window, HWND_NOTOPMOST, x, y, bounds.right-bounds.left,
bounds.bottom-bounds.top, SWP_NOCOPYBITS | SWP_SHOWWINDOW);
}
void OSystemWin32::setAppWindowPos(int x, int y, int w, int h)
{
SDL_SysWMinfo sdl_info;
memset(&sdl_info, 0, sizeof(sdl_info));
SDL_VERSION (&sdl_info.version);
if(SDL_GetWMInfo(&sdl_info) <= 0)
return;
// The following mostly comes from SDL_dx5video.c
HWND window = sdl_info.window;
RECT bounds;
bounds.left = x;
bounds.top = y;
bounds.right = x + w;
bounds.bottom = y + h;
AdjustWindowRectEx(&bounds, GetWindowLong(window, GWL_STYLE), (GetMenu(window) != NULL), 0);
SetWindowPos(window, HWND_NOTOPMOST, x, y, bounds.right-bounds.left,
bounds.bottom-bounds.top, SWP_NOCOPYBITS | SWP_SHOWWINDOW);
}

View File

@ -43,12 +43,12 @@ class OSystemWin32 : public OSystem
virtual ~OSystemWin32();
public:
/**
Move window to given position. The width and height are also
required for the underlying function, but the window size itself
absolutely must not be changed.
*/
void setAppWindowPos(int x, int y, int w, int h);
/**
Move window to given position. The width and height are also
required for the underlying function, but the window size itself
absolutely must not be changed.
*/
void setAppWindowPos(int x, int y, int w, int h);
};
#endif