Mercurial > hg > svgui
comparison layer/SliceLayer.cpp @ 1401:28075cc658c9
Scale pen for retina display on macOS as well as for hidpi display elsewhere
author | Chris Cannam |
---|---|
date | Thu, 15 Nov 2018 14:04:32 +0000 |
parents | decb7741d036 |
children | 10e768adaee5 |
comparison
equal
deleted
inserted
replaced
1400:decb7741d036 | 1401:28075cc658c9 |
---|---|
455 } else { | 455 } else { |
456 // Similarly, if there are very many bins here, we use a | 456 // Similarly, if there are very many bins here, we use a |
457 // thinner pen | 457 // thinner pen |
458 QPen pen; | 458 QPen pen; |
459 if (mh < 10000) { | 459 if (mh < 10000) { |
460 pen = PaintAssistant::scalePen(QPen(getBaseQColor(), 0.8)); | 460 pen = v->scalePen(QPen(getBaseQColor(), 0.8)); |
461 } else { | 461 } else { |
462 pen = QPen(getBaseQColor(), 1); | 462 pen = QPen(getBaseQColor(), 1); |
463 } | 463 } |
464 paint.setPen(pen); | 464 paint.setPen(pen); |
465 } | 465 } |