libui: Fix wrong return type
All checks were successful
Build and test / build (push) Successful in 2m26s
All checks were successful
Build and test / build (push) Successful in 2m26s
This commit is contained in:
parent
280b0c90af
commit
4087c7510e
@ -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 {};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user