mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
Fix warnings in nsgtk caused by recent changes.
svn path=/trunk/netsurf/; revision=3482
This commit is contained in:
parent
cc684469df
commit
bbd6b0740a
@ -33,6 +33,7 @@
|
||||
#include "gtk/gtk_gui.h"
|
||||
#include "gtk/gtk_options.h"
|
||||
#include "gtk/gtk_completion.h"
|
||||
#include "gtk/gtk_window.h"
|
||||
#include "gtk/options.h"
|
||||
#include "gtk/gtk_throbber.h"
|
||||
#include "gtk/gtk_history.h"
|
||||
|
@ -41,6 +41,8 @@ static bool nsgtk_plot_rectangle(int x0, int y0, int width, int height,
|
||||
static bool nsgtk_plot_line(int x0, int y0, int x1, int y1, int width,
|
||||
colour c, bool dotted, bool dashed);
|
||||
static bool nsgtk_plot_polygon(int *p, unsigned int n, colour fill);
|
||||
static bool nsgtk_plot_path(float *p, unsigned int n, colour fill, float width,
|
||||
colour c, float *transform);
|
||||
static bool nsgtk_plot_fill(int x0, int y0, int x1, int y1, colour c);
|
||||
static bool nsgtk_plot_clip(int clip_x0, int clip_y0,
|
||||
int clip_x1, int clip_y1);
|
||||
@ -77,7 +79,8 @@ const struct plotter_table nsgtk_plotters = {
|
||||
nsgtk_plot_bitmap_tile,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
NULL,
|
||||
nsgtk_plot_path
|
||||
};
|
||||
|
||||
|
||||
@ -363,6 +366,17 @@ bool nsgtk_plot_bitmap_tile(int x, int y, int width, int height,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool nsgtk_plot_path(float *p, unsigned int n, colour fill, float width,
|
||||
colour c, float *transform)
|
||||
{
|
||||
/* Only the internal SVG renderer uses this plot call currently,
|
||||
* and the GTK version uses librsvg. Thus, we ignore this complexity,
|
||||
* and just return true obliviously.
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void nsgtk_set_colour(colour c)
|
||||
{
|
||||
int r, g, b;
|
||||
|
Loading…
Reference in New Issue
Block a user