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();