Changed sf::WindowHandle from void* to HWND on Windows
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1580 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
0354c306e3
commit
d327320b59
3 changed files with 10 additions and 9 deletions
|
@ -71,7 +71,7 @@ myContext (NULL),
|
|||
myOwnsWindow (false)
|
||||
{
|
||||
// Get the owner window and its device context
|
||||
myWindow = static_cast<HWND>(owner->GetSystemHandle());
|
||||
myWindow = owner->GetSystemHandle();
|
||||
myDeviceContext = GetDC(myWindow);
|
||||
|
||||
// Create the context
|
||||
|
|
|
@ -64,16 +64,13 @@ namespace priv
|
|||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
WindowImplWin32::WindowImplWin32(WindowHandle handle) :
|
||||
myHandle (NULL),
|
||||
myHandle (handle),
|
||||
myCallback (0),
|
||||
myCursor (NULL),
|
||||
myIcon (NULL),
|
||||
myKeyRepeatEnabled(true),
|
||||
myIsCursorIn (false)
|
||||
{
|
||||
// Save window handle
|
||||
myHandle = static_cast<HWND>(handle);
|
||||
|
||||
if (myHandle)
|
||||
{
|
||||
// Get window client size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue