mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Fix compile error for 64-bit Windows
This commit is contained in:
parent
a876f1ee4b
commit
42a9491133
@ -339,7 +339,7 @@ set_window(NPWindow *window) {
|
|||||||
// main thread, but we also rely on this to paint the twirling
|
// main thread, but we also rely on this to paint the twirling
|
||||||
// icon into the browser window.
|
// icon into the browser window.
|
||||||
SetWindowLongPtr(_hwnd, GWLP_USERDATA, (LONG_PTR)this);
|
SetWindowLongPtr(_hwnd, GWLP_USERDATA, (LONG_PTR)this);
|
||||||
_orig_window_proc = SetWindowLongPtr(_hwnd, GWL_WNDPROC, (LONG_PTR)st_window_proc);
|
_orig_window_proc = SetWindowLongPtr(_hwnd, GWLP_WNDPROC, (LONG_PTR)st_window_proc);
|
||||||
|
|
||||||
// Also set a timer to go off every once in a while, to update
|
// Also set a timer to go off every once in a while, to update
|
||||||
// the twirling icon, and also to catch events in case something
|
// the twirling icon, and also to catch events in case something
|
||||||
@ -1986,7 +1986,7 @@ cleanup_window() {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Restore the parent window to its own window handler.
|
// Restore the parent window to its own window handler.
|
||||||
HWND hwnd = (HWND)_window.window;
|
HWND hwnd = (HWND)_window.window;
|
||||||
SetWindowLongPtr(hwnd, GWL_WNDPROC, _orig_window_proc);
|
SetWindowLongPtr(hwnd, GWLP_WNDPROC, _orig_window_proc);
|
||||||
InvalidateRect(hwnd, NULL, true);
|
InvalidateRect(hwnd, NULL, true);
|
||||||
|
|
||||||
if (_bg_brush != NULL) {
|
if (_bg_brush != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user