neuwld

patched neuwld library (tracked)
git clone https://git.daat.foo/neuwld.git
Log | Files | Refs | README | LICENSE

commit aa445296a599019e63b08bc866c0a8e95fa6fa3b
parent 8669757fd90b1663d0a3df278482c405d8c8bfaf
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 24 Jul 2013 22:22:40 -0700

Remove default_flush

Diffstat:
Mdrawable.c | 4----
Mpixman.c | 7++++++-
Mwld-private.h | 5-----
3 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/drawable.c b/drawable.c @@ -37,10 +37,6 @@ void default_fill_rectangles(struct wld_drawable * drawable, uint32_t color, wld_fill_rectangle(drawable, color, &rectangles[num_rectangles]); } -void default_flush(struct wld_drawable * drawable) -{ -} - void wld_fill_rectangle(struct wld_drawable * drawable, uint32_t color, pixman_rectangle16_t * rectangle) { diff --git a/pixman.c b/pixman.c @@ -54,13 +54,14 @@ static void pixman_draw_text_utf8(struct wld_drawable * drawable, struct font * font, uint32_t color, int32_t x, int32_t y, const char * text, int32_t length); +static void pixman_flush(struct wld_drawable * drawable); static void pixman_destroy(struct wld_drawable * drawable); const static struct wld_draw_interface pixman_draw = { .fill_rectangle = &default_fill_rectangle, .fill_rectangles = &pixman_fill_rectangles, .draw_text_utf8 = &pixman_draw_text_utf8, - .flush = &default_flush, + .flush = &pixman_flush, .destroy = &pixman_destroy }; @@ -238,6 +239,10 @@ static void pixman_draw_text_utf8(struct wld_drawable * drawable, pixman_image_unref(solid); } +void pixman_flush(struct wld_drawable * drawable) +{ +} + void pixman_destroy(struct wld_drawable * drawable) { struct pixman_drawable * pixman = (void *) drawable; diff --git a/wld-private.h b/wld-private.h @@ -124,10 +124,5 @@ void default_fill_rectangles(struct wld_drawable * drawable, uint32_t color, pixman_rectangle16_t * rectangles, uint32_t num_rectangles); -/** - * This is a NO-OP for implementations that do not require flushing. - */ -void default_flush(struct wld_drawable * drawable); - #endif