WIP: Rework the layout system #46

Closed
apio wants to merge 2 commits from new-layout into main
Showing only changes of commit 4087c7510e - Show all commits

View File

@ -46,7 +46,7 @@ namespace ui
Result<void> ImageWidget::draw(Canvas& canvas) 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()); canvas.subcanvas({ 0, 0, m_image->width(), m_image->height() }).fill(m_image->pixels(), m_image->width());
return {}; return {};
} }