|
From: Biswapriyo N. <nat...@gm...> - 2023-03-28 06:06:26
|
This replaces GCL_HCURSOR with GCLP_HCURSOR because the previous one
is undefined in 64-bit Windows SDK and in mingw-w64 toolchain. Hence,
fixes the following compiler error.
plplot/drivers/wingdi.c: In function 'CrossHairCursor':
plplot/drivers/wingdi.c:201:33: error: 'GCL_HCURSOR' undeclared (first use in this function); did you mean 'GCLP_HCURSOR'?
201 | SetClassLongPtr( dev->plot, GCL_HCURSOR, (long) cursor );
| ^~~~~~~~~~~
| GCLP_HCURSOR
Signed-off-by: Biswapriyo Nath <nat...@gm...>
---
drivers/wingdi.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/wingdi.c b/drivers/wingdi.c
index b81778a..6731ff6 100644
--- a/drivers/wingdi.c
+++ b/drivers/wingdi.c
@@ -198,7 +198,7 @@ CrossHairCursor( struct wingdi_Dev * dev )
HCURSOR cursor;
cursor = LoadCursor( NULL, IDC_CROSS );
- SetClassLongPtr( dev->plot, GCL_HCURSOR, (long) cursor );
+ SetClassLongPtr( dev->plot, GCLP_HCURSOR, (LONG_PTR) cursor );
return SetCursor( cursor );
}
@@ -208,7 +208,7 @@ NormalCursor( struct wingdi_Dev * dev )
HCURSOR cursor;
cursor = LoadCursor( NULL, IDC_ARROW );
- SetClassLongPtr( dev->plot, GCL_HCURSOR, (LONG_PTR) cursor );
+ SetClassLongPtr( dev->plot, GCLP_HCURSOR, (LONG_PTR) cursor );
SetCursor( cursor );
}
@@ -218,7 +218,7 @@ BusyCursor( struct wingdi_Dev * dev )
HCURSOR cursor;
cursor = LoadCursor( NULL, IDC_WAIT );
- SetClassLongPtr( dev->plot, GCL_HCURSOR, (LONG_PTR) cursor );
+ SetClassLongPtr( dev->plot, GCLP_HCURSOR, (LONG_PTR) cursor );
SetCursor( cursor );
}
--
2.40.0
|