From efc26882bde6d757e3111fa4684201ff61b30a4c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 14 Oct 2012 20:02:09 +0100 Subject: Remove suspend/invalidate stuff. --- examples/decode_bmp.c | 20 -------------------- examples/decode_ico.c | 20 -------------------- 2 files changed, 40 deletions(-) (limited to 'examples') diff --git a/examples/decode_bmp.c b/examples/decode_bmp.c index cdeaaf4..e5dc572 100644 --- a/examples/decode_bmp.c +++ b/examples/decode_bmp.c @@ -23,9 +23,6 @@ unsigned char *load_file(const char *path, size_t *data_size); void warning(const char *context, bmp_result code); void *bitmap_create(int width, int height, unsigned int state); -void bitmap_set_suspendable(void *bitmap, void *private_word, - void (*invalidate)(void *bitmap, void *private_word)); -void invalidate(void *bitmap, void *private_word); unsigned char *bitmap_get_buffer(void *bitmap); size_t bitmap_get_bpp(void *bitmap); void bitmap_destroy(void *bitmap); @@ -36,7 +33,6 @@ int main(int argc, char *argv[]) bmp_bitmap_callback_vt bitmap_callbacks = { bitmap_create, bitmap_destroy, - bitmap_set_suspendable, bitmap_get_buffer, bitmap_get_bpp }; @@ -174,22 +170,6 @@ void *bitmap_create(int width, int height, unsigned int state) } -void bitmap_set_suspendable(void *bitmap, void *private_word, - void (*invalidate)(void *bitmap, void *private_word)) -{ - (void) bitmap; /* unused */ - (void) private_word; /* unused */ - (void) invalidate; /* unused */ -} - - -void invalidate(void *bitmap, void *private_word) -{ - (void) bitmap; /* unused */ - (void) private_word; /* unused */ -} - - unsigned char *bitmap_get_buffer(void *bitmap) { assert(bitmap); diff --git a/examples/decode_ico.c b/examples/decode_ico.c index c62b009..935001c 100644 --- a/examples/decode_ico.c +++ b/examples/decode_ico.c @@ -27,9 +27,6 @@ unsigned char *load_file(const char *path, size_t *data_size); void warning(const char *context, bmp_result code); void *bitmap_create(int width, int height, unsigned int state); -void bitmap_set_suspendable(void *bitmap, void *private_word, - void (*invalidate)(void *bitmap, void *private_word)); -void invalidate(void *bitmap, void *private_word); unsigned char *bitmap_get_buffer(void *bitmap); size_t bitmap_get_bpp(void *bitmap); void bitmap_destroy(void *bitmap); @@ -40,7 +37,6 @@ int main(int argc, char *argv[]) bmp_bitmap_callback_vt bitmap_callbacks = { bitmap_create, bitmap_destroy, - bitmap_set_suspendable, bitmap_get_buffer, bitmap_get_bpp }; @@ -185,22 +181,6 @@ void *bitmap_create(int width, int height, unsigned int state) } -void bitmap_set_suspendable(void *bitmap, void *private_word, - void (*invalidate)(void *bitmap, void *private_word)) -{ - (void) bitmap; /* unused */ - (void) private_word; /* unused */ - (void) invalidate; /* unused */ -} - - -void invalidate(void *bitmap, void *private_word) -{ - (void) bitmap; /* unused */ - (void) private_word; /* unused */ -} - - unsigned char *bitmap_get_buffer(void *bitmap) { assert(bitmap); -- cgit v1.2.3