diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-23 23:33:37 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-23 23:33:37 +0100 |
commit | 922faa743b16fcfe661d18be9efcaf329186fbe9 (patch) | |
tree | e73535ee28dd9101834f6d3564d027af6ca3cc88 /gtk/plotters.c | |
parent | 974a4a21e16a2da85a66aae9b80eeca15ca26dd6 (diff) | |
download | netsurf-922faa743b16fcfe661d18be9efcaf329186fbe9.tar.gz netsurf-922faa743b16fcfe661d18be9efcaf329186fbe9.tar.bz2 |
Update gtk frontend to use layout table
Diffstat (limited to 'gtk/plotters.c')
-rw-r--r-- | gtk/plotters.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gtk/plotters.c b/gtk/plotters.c index 33f4c65fe..1d8c19827 100644 --- a/gtk/plotters.c +++ b/gtk/plotters.c @@ -17,13 +17,12 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -/** \file - * Target independent plotting (GDK / GTK+ and Cairo implementation). - * Can use either GDK drawing primitives (which are mostly passed straight - * to X to process, and thus accelerated) or Cairo drawing primitives (much - * higher quality, not accelerated). Cairo's fast enough, so it defaults - * to using it if it is available. It does this by checking for the - * CAIRO_VERSION define that the cairo headers set. +/** + * \file + * GTK and Cairo plotter implementations. + * + * Uses Cairo drawing primitives to render browser output. + * \todo remove the use of the gdk structure for clipping */ #include <math.h> @@ -36,7 +35,7 @@ #include "desktop/plotters.h" #include "utils/nsoption.h" -#include "gtk/font_pango.h" +#include "gtk/layout_pango.h" #include "gtk/plotters.h" #include "gtk/scaffolding.h" #include "gtk/bitmap.h" @@ -272,7 +271,7 @@ static bool nsgtk_plot_polygon(const int *p, unsigned int n, const plot_style_t static bool nsgtk_plot_text(int x, int y, const char *text, size_t length, - const plot_font_style_t *fstyle) + const struct plot_font_style *fstyle) { return nsfont_paint(x, y, text, length, fstyle); } |