Skip to content

Commit

Permalink
window_info: fix Win32 window references
Browse files Browse the repository at this point in the history
  • Loading branch information
jakogut committed Dec 22, 2017
1 parent ada19ea commit 23d7233
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kivy/core/window/_window_sdl2.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ cdef class _WindowSDL2Storage:

if wm_info.subsystem == SDL_SYSWM_TYPE.SDL_SYSWM_WINDOWS:
windows_info = WindowInfoWindows()
windows_info.hwnd = wm_info.info.win.hwnd
windows_info.window = wm_info.info.win.window
windows_info.hdc = wm_info.info.win.hdc
windows_info.hinstance = wm_info.info.win.hinstance

Expand Down
2 changes: 1 addition & 1 deletion kivy/core/window/window_info.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ IF USE_X11:

IF UNAME_SYSNAME == 'Windows':
cdef class WindowInfoWindows:
cdef HWND hwnd
cdef HWND window
cdef HDC hdc
cdef HINSTANCE hinstance
4 changes: 2 additions & 2 deletions kivy/core/window/window_info.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ IF USE_X11:
IF UNAME_SYSNAME == 'Windows':
cdef class WindowInfoWindows:
@property
def hwnd(self):
return <uintptr_t>self.hwnd
def window(self):
return <uintptr_t>self.window

@property
def hdc(self):
Expand Down

0 comments on commit 23d7233

Please sign in to comment.