[BACK]Return to wgraph.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot / win

Diff for /OpenXM_contrib/gnuplot/win/Attic/wgraph.c between version 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2000/01/09 17:01:19 version 1.1.1.2, 2000/01/22 14:16:33
Line 384  MakePens(LPGW lpgw, HDC hdc)
Line 384  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 408  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 739  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);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>