convert beos to bitmap operation table

This commit is contained in:
Vincent Sanders 2015-04-16 23:47:10 +01:00
parent fb0bd79944
commit 839f15fc72
3 changed files with 32 additions and 2 deletions

View File

@ -401,3 +401,20 @@ nsbeos_bitmap_get_pretile_xy(struct bitmap* bitmap)
}
return bitmap->pretile_xy;
}
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 *beos_bitmap_table = &bitmap_table;

View File

@ -29,6 +29,6 @@ BBitmap *nsbeos_bitmap_get_pretile_x(struct bitmap*);
BBitmap *nsbeos_bitmap_get_pretile_y(struct bitmap*);
BBitmap *nsbeos_bitmap_get_pretile_xy(struct bitmap*);
struct gui_bitmap_table *beos_bitmap_table;
#endif /* NS_BEOS_BITMAP_H */

View File

@ -79,6 +79,7 @@ extern "C" {
#include "beos/schedule.h"
#include "beos/fetch_rsrc.h"
#include "beos/scaffolding.h"
#include "beos/bitmap.h"
static void *myrealloc(void *ptr, size_t len, void *pw);
@ -995,7 +996,13 @@ int main(int argc, char** argv)
beos_window_table,
beos_download_table,
&beos_clipboard_table,
&beos_fetch_table
&beos_fetch_table,
NULL, /* use POSIX file */
NULL, /* default utf8 */
NULL, /* default search */
NULL, /* default web search */
NULL, /* default low level cache persistant storage */
beos_bitmap_table
};
ret = netsurf_register(&beos_table);
@ -1055,6 +1062,12 @@ int gui_init_replicant(int argc, char** argv)
beos_download_table,
&beos_clipboard_table,
&beos_fetch_table
NULL, /* use POSIX file */
NULL, /* default utf8 */
NULL, /* default search */
NULL, /* default web search */
NULL, /* default low level cache persistant storage */
beos_bitmap_table
};
ret = netsurf_register(&beos_table);