mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
nitpicker: Draw black view if no buffer is present
This commit is contained in:
parent
0d82070b82
commit
2575fc0ade
@ -123,9 +123,12 @@ void View::draw(Canvas_base &canvas, Mode const &mode) const
|
||||
_session.color().g >> 1,
|
||||
_session.color().b >> 1);
|
||||
|
||||
if (_session.texture())
|
||||
if (_session.texture()) {
|
||||
canvas.draw_texture(_buffer_off + view_rect.p1(), *_session.texture(),
|
||||
op, mix_color, allow_alpha);
|
||||
} else {
|
||||
canvas.draw_box(view_rect, BLACK);
|
||||
}
|
||||
|
||||
if (mode.flat()) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user