| version 1.1.1.1, 2000/01/09 17:01:19 |
version 1.1.1.3, 2003/09/15 07:09:40 |
| Line 366 MakePens(LPGW lpgw, HDC hdc) |
|
| Line 366 MakePens(LPGW lpgw, HDC hdc) |
|
| for (i=0; i<WGNUMPENS; i++) |
for (i=0; i<WGNUMPENS; i++) |
| { |
{ |
| lpgw->hpen[i] = CreatePenIndirect((LOGPEN FAR *)&lpgw->monopen[i+2]); |
lpgw->hpen[i] = CreatePenIndirect((LOGPEN FAR *)&lpgw->monopen[i+2]); |
| |
lpgw->hsolidpen[i] = CreatePenIndirect((LOGPEN FAR *)&lpgw->monopen[2]); |
| } |
} |
| /* find number of solid, unit width line styles */ |
/* find number of solid, unit width line styles */ |
| for (i=0; i<WGNUMPENS && lpgw->monopen[i+2].lopnStyle==PS_SOLID |
for (i=0; i<WGNUMPENS && lpgw->monopen[i+2].lopnStyle==PS_SOLID |
| Line 384 MakePens(LPGW lpgw, HDC hdc) |
|
| Line 385 MakePens(LPGW lpgw, HDC hdc) |
|
| for (i=0; i<WGNUMPENS; i++) |
for (i=0; i<WGNUMPENS; i++) |
| { |
{ |
| lpgw->hpen[i] = CreatePenIndirect((LOGPEN FAR *)&lpgw->colorpen[i+2]); |
lpgw->hpen[i] = CreatePenIndirect((LOGPEN FAR *)&lpgw->colorpen[i+2]); |
| |
#if 1 /* HBB 980118 fix 'numsolid' problem */ |
| |
lpgw->hsolidpen[i] = CreatePen(PS_SOLID, 1, lpgw->colorpen[i+2].lopnColor); |
| |
#endif |
| } |
} |
| /* find number of solid, unit width line styles */ |
/* find number of solid, unit width line styles */ |
| for (i=0; i<WGNUMPENS && lpgw->colorpen[i+2].lopnStyle==PS_SOLID |
for (i=0; i<WGNUMPENS && lpgw->colorpen[i+2].lopnStyle==PS_SOLID |
| Line 405 DestroyPens(LPGW lpgw) |
|
| Line 409 DestroyPens(LPGW lpgw) |
|
| DeleteObject(lpgw->hapen); |
DeleteObject(lpgw->hapen); |
| for (i=0; i<WGNUMPENS; i++) |
for (i=0; i<WGNUMPENS; i++) |
| DeleteObject(lpgw->hpen[i]); |
DeleteObject(lpgw->hpen[i]); |
| |
#if 1 /* HBB 980118: fix 'numsolid' gotcha */ |
| |
for (i=0; i<WGNUMPENS; i++) |
| |
DeleteObject(lpgw->hsolidpen[i]); |
| |
#endif |
| for (i=0; i<WGNUMPENS+2; i++) |
for (i=0; i<WGNUMPENS+2; i++) |
| DeleteObject(lpgw->colorbrush[i]); |
DeleteObject(lpgw->colorbrush[i]); |
| } |
} |
| Line 732 drawgraph(LPGW lpgw, HDC hdc, LPRECT rect) |
|
| Line 740 drawgraph(LPGW lpgw, HDC hdc, LPRECT rect) |
|
| } |
} |
| break; |
break; |
| default: /* A plot mark */ |
default: /* A plot mark */ |
| |
#if 0 /* HBB 980118: fix 'sumsolid' gotcha: */ |
| if (pen >= numsolid) { |
if (pen >= numsolid) { |
| pen %= numsolid; /* select solid pen */ |
pen %= numsolid; /* select solid pen */ |
| SelectObject(hdc, lpgw->hpen[pen]); |
SelectObject(hdc, lpgw->hpen[pen]); |
| SelectObject(hdc, lpgw->colorbrush[pen+2]); |
SelectObject(hdc, lpgw->colorbrush[pen+2]); |
| } |
} |
| |
#else |
| |
SelectObject(hdc, lpgw->hsolidpen[pen%WGNUMPENS]); |
| |
#endif |
| switch (curptr->op) { |
switch (curptr->op) { |
| case W_dot: |
case W_dot: |
| dot(hdc, xdash, ydash); |
dot(hdc, xdash, ydash); |