=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/win/Attic/wgraph.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gnuplot/win/Attic/wgraph.c 2000/01/09 17:01:19 1.1.1.1 +++ OpenXM_contrib/gnuplot/win/Attic/wgraph.c 2000/01/22 14:16:33 1.1.1.2 @@ -1,5 +1,5 @@ #ifndef lint -static char *RCSid = "$Id: wgraph.c,v 1.1.1.1 2000/01/09 17:01:19 maekawa Exp $"; +static char *RCSid = "$Id: wgraph.c,v 1.1.1.2 2000/01/22 14:16:33 maekawa Exp $"; #endif /* GNUPLOT - win/wgraph.c */ @@ -384,6 +384,9 @@ MakePens(LPGW lpgw, HDC hdc) for (i=0; ihpen[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 */ for (i=0; icolorpen[i+2].lopnStyle==PS_SOLID @@ -405,6 +408,10 @@ DestroyPens(LPGW lpgw) DeleteObject(lpgw->hapen); for (i=0; ihpen[i]); +#if 1 /* HBB 980118: fix 'numsolid' gotcha */ + for (i=0; ihsolidpen[i]); +#endif for (i=0; icolorbrush[i]); } @@ -732,11 +739,15 @@ drawgraph(LPGW lpgw, HDC hdc, LPRECT rect) } break; default: /* A plot mark */ +#if 0 /* HBB 980118: fix 'sumsolid' gotcha: */ if (pen >= numsolid) { pen %= numsolid; /* select solid pen */ SelectObject(hdc, lpgw->hpen[pen]); SelectObject(hdc, lpgw->colorbrush[pen+2]); } +#else + SelectObject(hdc, lpgw->hsolidpen[pen%WGNUMPENS]); +#endif switch (curptr->op) { case W_dot: dot(hdc, xdash, ydash);