fix missing comma in beos operations table

This commit is contained in:
Vincent Sanders 2015-04-17 00:29:58 +01:00
parent e36907c5e1
commit 402d740137
3 changed files with 10 additions and 5 deletions

View File

@ -281,7 +281,8 @@ bool bitmap_save(void *vbitmap, const char *path, unsigned flags)
* *
* \param vbitmap a bitmap, as returned by bitmap_create() * \param vbitmap a bitmap, as returned by bitmap_create()
*/ */
void bitmap_modified(void *vbitmap) { void bitmap_modified(void *vbitmap)
{
struct bitmap *bitmap = (struct bitmap *)vbitmap; struct bitmap *bitmap = (struct bitmap *)vbitmap;
// convert the shadow (ABGR) to into the primary bitmap // convert the shadow (ABGR) to into the primary bitmap
nsbeos_rgba_to_bgra(bitmap->shadow->Bits(), bitmap->primary->Bits(), nsbeos_rgba_to_bgra(bitmap->shadow->Bits(), bitmap->primary->Bits(),
@ -291,12 +292,14 @@ void bitmap_modified(void *vbitmap) {
nsbeos_bitmap_free_pretiles(bitmap); nsbeos_bitmap_free_pretiles(bitmap);
} }
int bitmap_get_width(void *vbitmap){ int bitmap_get_width(void *vbitmap)
{
struct bitmap *bitmap = (struct bitmap *)vbitmap; struct bitmap *bitmap = (struct bitmap *)vbitmap;
return bitmap->primary->Bounds().Width() + 1; return bitmap->primary->Bounds().Width() + 1;
} }
int bitmap_get_height(void *vbitmap){ int bitmap_get_height(void *vbitmap)
{
struct bitmap *bitmap = (struct bitmap *)vbitmap; struct bitmap *bitmap = (struct bitmap *)vbitmap;
return bitmap->primary->Bounds().Height() + 1; return bitmap->primary->Bounds().Height() + 1;
} }

View File

@ -24,11 +24,13 @@ extern "C" {
#include "image/bitmap.h" #include "image/bitmap.h"
} }
extern struct gui_bitmap_table *beos_bitmap_table;
BBitmap *nsbeos_bitmap_get_primary(struct bitmap*); BBitmap *nsbeos_bitmap_get_primary(struct bitmap*);
BBitmap *nsbeos_bitmap_get_pretile_x(struct bitmap*); BBitmap *nsbeos_bitmap_get_pretile_x(struct bitmap*);
BBitmap *nsbeos_bitmap_get_pretile_y(struct bitmap*); BBitmap *nsbeos_bitmap_get_pretile_y(struct bitmap*);
BBitmap *nsbeos_bitmap_get_pretile_xy(struct bitmap*); BBitmap *nsbeos_bitmap_get_pretile_xy(struct bitmap*);
extern struct gui_bitmap_table *beos_bitmap_table; void bitmap_modified(void *vbitmap);
#endif /* NS_BEOS_BITMAP_H */ #endif /* NS_BEOS_BITMAP_H */

View File

@ -1061,7 +1061,7 @@ int gui_init_replicant(int argc, char** argv)
beos_window_table, beos_window_table,
beos_download_table, beos_download_table,
&beos_clipboard_table, &beos_clipboard_table,
&beos_fetch_table &beos_fetch_table,
NULL, /* use POSIX file */ NULL, /* use POSIX file */
NULL, /* default utf8 */ NULL, /* default utf8 */
NULL, /* default search */ NULL, /* default search */