uterm: video: add blend() helper
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 31 Jul 2012 12:24:45 +0000 (14:24 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 31 Jul 2012 12:24:45 +0000 (14:24 +0200)
commit51b70bef525565de62ac11a320d40e25d8c4a64c
tree305252d44de66062b6b083d81c02e88065262c08
parent6ab01cbf6be2ba5aaf6d43b3d5b361c050a5f235
uterm: video: add blend() helper

When drawing single glyphs we often have the glyph as alpha-only buffer so
we can draw it with any color we want. blit() requires a full image that
can be copied, so the new blend() helper is introduced which takes a
foreground and background color and blends in an image. Only plain-alpha
buffers are currently supported.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/uterm.h
src/uterm_internal.h
src/uterm_video.c
src/uterm_video_dumb.c
src/uterm_video_fbdev.c