genode/repos/demo/include
Norman Feske ed774253b6 demo: fix corner case in scout_gfx/icon_painter.h
The original version of the icon painter would reach beyong the
texture boundaries for textures of even width and height, and when
painting an icon with the width or height of the texture.

In this case, p3 would be set to the same value as p2. However, the code
expects p3 to lie within the middle rectangle. However, in this corner
case, the middle rectangle is actually empty. So no pixel can lie within
it. Hence, p3 is positioned by one pixel to the left outside the middle
rectangle, which violates the assumptions when calculating the clipping
and texture offsets. The patch fixes the problem by reducing the size of
the right column by one pixel. This ensures that exists always a
non-zero middle rectangle.
2015-11-27 12:18:53 +01:00
..
launchpad base: make PD session upgradeable 2015-05-26 09:40:02 +02:00
libpng_static Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
libz_static Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
mini_c Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
scout os: add texture_rgb888.h and texture_rgb565.h 2014-10-13 15:21:53 +02:00
scout_gfx demo: fix corner case in scout_gfx/icon_painter.h 2015-11-27 12:18:53 +01:00
util demo: make Lazy_value::dst() const 2015-11-27 12:18:53 +01:00