1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

compile right w/wx 2.6

This commit is contained in:
Charles Kerr 2007-08-23 02:54:34 +00:00
parent 08354cb792
commit 67e79c063f

View file

@ -83,7 +83,8 @@ SpeedStats :: OnPaint( wxPaintEvent& WXUNUSED(event) )
const int per_bar = top / num_bars; const int per_bar = top / num_bars;
// clear // clear
wxMemoryDC memDC( *myBitmap ); wxMemoryDC memDC;
memDC.SelectObject( *myBitmap );
memDC.SetBackground( myColors[BACKGROUND] ); memDC.SetBackground( myColors[BACKGROUND] );
memDC.Clear( ); memDC.Clear( );
@ -183,12 +184,12 @@ SpeedStats :: Pulse( tr_handle_t * handle )
Speed s; Speed s;
s.time = time( NULL ); s.time = time( NULL );
s.allUp = s.time % 30;//allUp; s.allUp = s.time % 30;//allUp;
s.allDown = s.time % 15;//allDown; s.allDown = allDown;
//if( myTorrent ) { if( myTorrent ) {
//const tr_stat_t * stat = tr_torrentStat( myTorrent ); const tr_stat_t * stat = tr_torrentStat( myTorrent );
s.torrentUp = s.time % 40;//stat->rateUpload; s.torrentUp = stat->rateUpload;
s.torrentDown = s.time % 25;//stat->rateDownload; s.torrentDown = stat->rateDownload;
//} }
myStats.push_back( s ); myStats.push_back( s );
// age off old data // age off old data