uterm: video: change blit'ting logic
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 31 Jul 2012 08:22:39 +0000 (10:22 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 31 Jul 2012 08:22:39 +0000 (10:22 +0200)
commit361177fe972c0be63adb369ab1a3b3fea2286f2b
tree447f80dc7b07cba304c892559bde2a7390dc7b8b
parent20e0e69253db56c6eb8eec2911fb187bb50d3934
uterm: video: change blit'ting logic

Instead of passing width/height separately, we now use the values from the
buffer object. The caller has to manipulate the buffer object to change
these values. In fact, they can simply create a buffer object on the stack
with the same values copied from the real buffer and just adjust the
offset, width, height and stride. With the help of the stride value, it is
possible to even shrink the buffer horizontally.

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