-#if defined(_NEW_GC_DASHES_)
- const char *dashData = NULL ;
- char *userDashData = NULL ;
- float alphaArray[1];
-
- const char dotted[] = { 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55 };
- const char dashed[] = { 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00 };
- const char short_dashed[] = { 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00 };
- const char dotted_dashed[] = { 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0xFF, 0x00 };
-
- switch (pen.GetStyle())
- {
- case wxSOLID:
- // default, undashed pen
- break;
-
- case wxDOT:
- dashData = dotted;
- count = WXSIZEOF(dotted);
- break;
- case wxLONG_DASH:
- dashData = dashed;
- count = WXSIZEOF(dashed);
- break;
- case wxSHORT_DASH:
- dashData = short_dashed;
- count = WXSIZEOF(short_dashed);
- break;
- case wxDOT_DASH:
- dashData = dotted_dashed;
- count = WXSIZEOF(dotted_dashed);
- break;
- case wxUSER_DASH:
- count = pen.GetDashes( (wxDash**)&userDashData );
- dashData = userDashData;
- break;
-
- default :
- break;
- }