Skip to content

Commit c960ada

Browse files
authored
back/winlib: fix the dash pattern type in the win32 graphics state (#143)
The dash pattern was declared as an array of CGFloat pointers rather than an array of CGFloat, so -getLineDash:count:phase: filled it with dash lengths cast to pointers and the pen pattern was built from the pointer values. It also did not compile on a modern compiler. Declare it as an array of CGFloat.
1 parent 44a5a18 commit c960ada

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/winlib/WIN32GState.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ - (void) setStyle: (HDC)hDC
13751375
if (patternCount > 0)
13761376
{
13771377
NSInteger i = 0;
1378-
CGFloat* thePattern[patternCount];
1378+
CGFloat thePattern[patternCount];
13791379
CGFloat phase = 0.0;
13801380

13811381
penStyle = PS_GEOMETRIC | PS_USERSTYLE;

0 commit comments

Comments
 (0)