os: avoid garbage warnings in app/painter

Issue #3022
This commit is contained in:
Alexander Boettcher 2018-11-06 14:41:27 +01:00 committed by Norman Feske
parent 5572430ba5
commit aa03c4ce9f
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ struct Dither_painter
Genode::Texture<SRC_PT> const &texture)
{
if (surface.size() != texture.size()) return;
if (!texture.pixel() || !texture.alpha()) return;
Genode::Surface_base::Rect const clipped = surface.clip();

View File

@ -256,7 +256,7 @@ void Pointer::Main::_update_pointer()
_rom_registry.lookup(*this, _hovered_label);
try {
Shape_report shape_report;
Shape_report shape_report { 0, 0, 0, 0, 0, 0 };
shape_module.read_content(*this, (char*)&shape_report, sizeof(shape_report));