From bfcc54db3dfe6c19f78d369788e14ad9eb46f3bd Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Wed, 13 Oct 2010 21:43:24 +0000 Subject: [PATCH] Updated sfWindowHandle in CSFML (sync with sf::WindowHandle) git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1581 4e206d99-4929-0410-ac5d-dfc041789085 --- CSFML/include/SFML/Window/WindowHandle.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CSFML/include/SFML/Window/WindowHandle.h b/CSFML/include/SFML/Window/WindowHandle.h index f0604844..171536e5 100644 --- a/CSFML/include/SFML/Window/WindowHandle.h +++ b/CSFML/include/SFML/Window/WindowHandle.h @@ -37,17 +37,18 @@ //////////////////////////////////////////////////////////// #if defined(CSFML_SYSTEM_WINDOWS) - // Windows defines a void* handle (HWND) - typedef void* sfWindowHandle; + // Window handle is HWND (HWND__*) on Windows + struct HWND__; + typedef HWND__* sfWindowHandle; #elif defined(CSFML_SYSTEM_LINUX) || defined(CSFML_SYSTEM_FREEBSD) - // Unix - X11 defines an unsigned integer handle (Window) + // Window handle is Window (unsigned long) on Unix - X11 typedef unsigned long sfWindowHandle; #elif defined(CSFML_SYSTEM_MACOS) - // Mac OS X defines a void* handle (NSWindow) + // Window handle is NSWindow (void*) on Mac OS X - Cocoa typedef void* sfWindowHandle; #endif