mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Use anti-aliasing when rendering histogram bar
This commit is contained in:
@@ -226,6 +226,9 @@ void RangeHistogram::leaveEvent(QEvent *e)
|
||||
void RangeHistogram::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
QPainter p(this);
|
||||
|
||||
p.setRenderHint(QPainter::Antialiasing);
|
||||
|
||||
const QBrush blackBrush(QColor(0, 0, 0));
|
||||
const QBrush grayBrush(QColor(180, 180, 180));
|
||||
const QBrush redBrush(QColor(60, 0, 0));
|
||||
|
||||
Reference in New Issue
Block a user