diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-07-31 10:22:39 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2012-07-31 10:22:39 +0200 |
commit | 361177fe972c0be63adb369ab1a3b3fea2286f2b (patch) | |
tree | 447f80dc7b07cba304c892559bde2a7390dc7b8b /src/font_pango.c | |
parent | 20e0e69253db56c6eb8eec2911fb187bb50d3934 (diff) |
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>
Diffstat (limited to 'src/font_pango.c')
-rw-r--r-- | src/font_pango.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/font_pango.c b/src/font_pango.c index 871b04c..8d4ece2 100644 --- a/src/font_pango.c +++ b/src/font_pango.c @@ -787,8 +787,7 @@ int font_screen_draw_perform(struct font_screen *screen, float *m) screen->buf->data); gl_shader_draw_tex(screen->shader, ver, tex, 6, screen->tex, m); } else { - uterm_screen_blit(screen->scr, &buf, 0, 0, - buf.width, buf.height); + uterm_screen_blit(screen->scr, &buf, 0, 0); } cairo_restore(screen->cr); |