Skip to content

Commit

Permalink
- replaced SetWindowLongW with SetWindowLongPtrW, fixes #441
Browse files Browse the repository at this point in the history
  • Loading branch information
AphonicChaos committed Jun 8, 2012
1 parent b970b2d commit 8363baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kivy/input/providers/wm_pen.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def start(self):
# inject our own wndProc to handle messages
# before window manager does
self.new_windProc = WNDPROC(self._pen_wndProc)
self.old_windProc = windll.user32.SetWindowLongW(
self.old_windProc = windll.user32.SetWindowLongPtrW(
self.hwnd,
GWL_WNDPROC,
self.new_windProc)
Expand All @@ -126,7 +126,7 @@ def update(self, dispatch_fn):

def stop(self):
self.pen = None
windll.user32.SetWindowLongW(
windll.user32.SetWindowLongPtrW(
self.hwnd,
GWL_WNDPROC,
self.old_windProc)
Expand Down
4 changes: 2 additions & 2 deletions kivy/input/providers/wm_touch.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def start(self):
# inject our own wndProc to handle messages
# before window manager does
self.new_windProc = WNDPROC(self._touch_wndProc)
self.old_windProc = windll.user32.SetWindowLongW(
self.old_windProc = windll.user32.SetWindowLongPtrW(
self.hwnd,
GWL_WNDPROC,
self.new_windProc)
Expand Down Expand Up @@ -150,7 +150,7 @@ def update(self, dispatch_fn):

def stop(self):
windll.user32.UnregisterTouchWindow(self.hwnd)
self.new_windProc = windll.user32.SetWindowLongW(
self.new_windProc = windll.user32.SetWindowLongPtrW(
self.hwnd,
GWL_WNDPROC,
self.old_windProc)
Expand Down

0 comments on commit 8363baf

Please sign in to comment.