use consistently GetWindowLongPtr also for Cairo on Windows

This commit is contained in:
rmottola 2021-03-04 15:12:34 +01:00
parent d5abf2ff1c
commit 8640bfafe3

View file

@ -39,7 +39,7 @@
{ {
if (self) if (self)
{ {
WIN_INTERN *win = (WIN_INTERN *)GetWindowLong((HWND)device, GWL_USERDATA); WIN_INTERN *win = (WIN_INTERN *)GetWindowLongPtr((HWND)device, GWLP_USERDATA);
HDC hDC = GetDC((HWND)device); HDC hDC = GetDC((HWND)device);
// Save/set initial state... // Save/set initial state...