Changeset 1958 in ntrip


Ignore:
Timestamp:
Nov 15, 2009, 10:50:47 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigure.cpp

    r1956 r1958  
    5252  slotNextAnimationFrame();
    5353  for (int ii = 0; ii <= 1000; ii++) {
    54     _r[ii] = qrand() % 255;
    55     _g[ii] = qrand() % 255;
    56     _b[ii] = qrand() % 255;
     54    _rgb[0][ii] = qrand() % 255;
     55    _rgb[1][ii] = qrand() % 255;
     56    _rgb[2][ii] = qrand() % 255;
    5757  }
    5858}
     
    184184
    185185    if(_maxRate > 0.0) {
    186       QColor color = QColor::fromRgb(_r[anchor],_g[anchor],_b[anchor]);
     186      QColor color = QColor::fromRgb(_rgb[0][anchor],_rgb[1][anchor],_rgb[2][anchor]);
    187187      painter.fillRect(xx-10, int((yMax-yMin)*xLine)-yy, 10, yy,
    188188                       QBrush(color,Qt::SolidPattern));
  • trunk/BNC/bncfigure.h

    r1956 r1958  
    5252  int                           _counter;
    5353  double                        _maxRate;
    54   int _r[1001];
    55   int _g[1001];
    56   int _b[1001];
     54  int                           _rgb[3][1001];
    5755};
    5856
Note: See TracChangeset for help on using the changeset viewer.