diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-04-16 23:52:19 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-04-16 23:52:19 +0100 |
commit | 8dc2a8f0b21a7c430da450a4051cf056f09b5a78 (patch) | |
tree | b5dcc12c4b0bbcf63845bace707654696f712d6b /cocoa/bitmap.m | |
parent | 839f15fc72166eb63be4f2afc4588d253e88c9f4 (diff) | |
download | netsurf-8dc2a8f0b21a7c430da450a4051cf056f09b5a78.tar.gz netsurf-8dc2a8f0b21a7c430da450a4051cf056f09b5a78.tar.bz2 |
convert cocoa frontend to bitmap operation table
Diffstat (limited to 'cocoa/bitmap.m')
-rw-r--r-- | cocoa/bitmap.m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cocoa/bitmap.m b/cocoa/bitmap.m index 45b1d3b19..45ea1e0a2 100644 --- a/cocoa/bitmap.m +++ b/cocoa/bitmap.m @@ -215,3 +215,19 @@ static CGImageRef cocoa_prepare_bitmap( void *bitmap ) return result; } +static struct gui_bitmap_table bitmap_table = { + .create = bitmap_create, + .destroy = bitmap_destroy, + .set_opaque = bitmap_set_opaque, + .get_opaque = bitmap_get_opaque, + .test_opaque = bitmap_test_opaque, + .get_buffer = bitmap_get_buffer, + .get_rowstride = bitmap_get_rowstride, + .get_width = bitmap_get_width, + .get_height = bitmap_get_height, + .get_bpp = bitmap_get_bpp, + .save = bitmap_save, + .modified = bitmap_modified, +}; + +struct gui_bitmap_table *cocoa_bitmap_table = &bitmap_table; |