mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed small display issue causing the availability map to become black when more than 6 sources are present
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5542 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
88b2b67174
commit
318c2d1b01
@ -229,7 +229,7 @@ void FileTransferInfoWidget::draw(const FileInfo& nfo,const FileChunksInfo& info
|
||||
for(std::map<std::string,CompressedChunkMap>::const_iterator it(info.compressed_peer_availability_maps.begin());it!=info.compressed_peer_availability_maps.end();++it)
|
||||
nb_src += it->second[chunk_num] ;
|
||||
|
||||
painter->setPen(QColor::fromHsv(200,50*nb_src,200)) ; // the more sources, the more saturated
|
||||
painter->setPen(QColor::fromHsv(200,std::max(255,50*nb_src),200)) ; // the more sources, the more saturated
|
||||
painter->drawLine(i,y,i,y+availability_map_size_Y) ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user