WIP: Rework the layout system #46
@ -46,7 +46,7 @@ namespace ui
|
||||
|
||||
Result<void> ImageWidget::draw(Canvas& canvas)
|
||||
{
|
||||
if (!m_image) return;
|
||||
if (!m_image) return {};
|
||||
canvas.subcanvas({ 0, 0, m_image->width(), m_image->height() }).fill(m_image->pixels(), m_image->width());
|
||||
return {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user