mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
A bit more placeholder UI around the texture display rect
This commit is contained in:
@@ -16,6 +16,15 @@ CustomPaintWidget::~CustomPaintWidget()
|
||||
|
||||
void CustomPaintWidget::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
if(m_Output) m_Output->Display();
|
||||
if(m_Output)
|
||||
{
|
||||
m_Output->Display();
|
||||
}
|
||||
else
|
||||
{
|
||||
QPainter p(this);
|
||||
p.setBrush(QBrush(Qt::black));
|
||||
p.drawRect(rect());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user