diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-12-30 00:58:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-12-30 00:58:35 +0000 |
commit | df18a971435c35963bb8ea94efc0d5326ad66ff0 (patch) | |
tree | 0f0ccea83c6f4cd82d7195478d7bd35f7ae89e31 /gtk/bitmap.h | |
parent | 4dd695c156879ad845a33ad8ef9748b0f54a4f1a (diff) | |
download | netsurf-df18a971435c35963bb8ea94efc0d5326ad66ff0.tar.gz netsurf-df18a971435c35963bb8ea94efc0d5326ad66ff0.tar.bz2 |
Change GTK plotting to use cairo surfaces throughout
svn path=/trunk/netsurf/; revision=13354
Diffstat (limited to 'gtk/bitmap.h')
-rw-r--r-- | gtk/bitmap.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gtk/bitmap.h b/gtk/bitmap.h index d936f7d76..62d50f47c 100644 --- a/gtk/bitmap.h +++ b/gtk/bitmap.h @@ -19,15 +19,13 @@ #ifndef NS_GTK_BITMAP_H #define NS_GTK_BITMAP_H -#include <gdk/gdk.h> -#include <gdk-pixbuf/gdk-pixbuf.h> +#include <cairo.h> #include "image/bitmap.h" -GdkPixbuf *gtk_bitmap_get_primary(struct bitmap*); -GdkPixbuf *gtk_bitmap_get_pretile_x(struct bitmap*); -GdkPixbuf *gtk_bitmap_get_pretile_y(struct bitmap*); -GdkPixbuf *gtk_bitmap_get_pretile_xy(struct bitmap*); - - +struct bitmap { + cairo_surface_t *surface; /* original cairo surface */ + cairo_surface_t *scsurface; /* scaled surface */ + bool converted; /** set if the surface data has been converted */ +}; #endif /* NS_GTK_BITMAP_H */ |