diff options
author | Martin Kiewitz | 2010-10-24 19:04:35 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-10-24 19:04:35 +0000 |
commit | 27ee12e6a596dc585622e0cee5a27f906503df70 (patch) | |
tree | 3847d30bd28fb8235d749d401ebc7394d4b2575c /backends/platform/sdl | |
parent | c9c9eafbbb791d1b754c053aac221979a39216e1 (diff) | |
download | scummvm-rg350-27ee12e6a596dc585622e0cee5a27f906503df70.tar.gz scummvm-rg350-27ee12e6a596dc585622e0cee5a27f906503df70.tar.bz2 scummvm-rg350-27ee12e6a596dc585622e0cee5a27f906503df70.zip |
SDL/win32: fix lf, thx msvc
svn-id: r53768
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 21c2c50d79..83393c225a 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -124,16 +124,16 @@ static AspectRatio getDesiredAspectRatio() { }; // console hiding for win32 - static BOOL CALLBACK initBackendFindConsoleWin32Proc(HWND hWnd, LPARAM lParam) {
- DWORD pid, tid;
- SdlConsoleHidingWin32 *variables = (SdlConsoleHidingWin32 *)lParam;
- tid = GetWindowThreadProcessId(hWnd, &pid);
- if ((tid == variables->myTid) && (pid == variables->myPid)) {
- variables->consoleHandle = hWnd;
- return FALSE;
- }
- return TRUE;
- }
+ static BOOL CALLBACK initBackendFindConsoleWin32Proc(HWND hWnd, LPARAM lParam) { + DWORD pid, tid; + SdlConsoleHidingWin32 *variables = (SdlConsoleHidingWin32 *)lParam; + tid = GetWindowThreadProcessId(hWnd, &pid); + if ((tid == variables->myTid) && (pid == variables->myPid)) { + variables->consoleHandle = hWnd; + return FALSE; + } + return TRUE; + } #endif void OSystem_SDL::initBackend() { @@ -161,8 +161,8 @@ void OSystem_SDL::initBackend() { // console hiding for win32 SdlConsoleHidingWin32 consoleHidingWin32; consoleHidingWin32.consoleHandle = 0; - consoleHidingWin32.myPid = GetCurrentProcessId();
- consoleHidingWin32.myTid = GetCurrentThreadId();
+ consoleHidingWin32.myPid = GetCurrentProcessId(); + consoleHidingWin32.myTid = GetCurrentThreadId(); EnumWindows (initBackendFindConsoleWin32Proc, (LPARAM)&consoleHidingWin32); if (!ConfMan.getBool("show_console")) { |