GtkWidget *widget,
GdkRectangle *area,
GtkBorder *border,
- gboolean highlight)
+ gboolean highlight,
+ gboolean inverted_colors)
{
GtkStyle *style = gtk_widget_get_style (widget);
GtkStateType state = gtk_widget_get_state (widget);
area->width,
area->height);
gdk_draw_rectangle (drawable,
- style->white_gc,
+ inverted_colors ? style->black_gc : style->white_gc,
TRUE,
area->x + border->left,
area->y + border->top,
GtkWidget *widget,
GdkRectangle *area,
GtkBorder *border,
- gboolean highlight);
+ gboolean highlight,
+ gboolean inverted_colors);
cairo_surface_t *ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf);
GdkPixbuf *ev_document_misc_pixbuf_from_surface (cairo_surface_t *surface);
GdkRectangle overlap;
GdkRectangle real_page_area;
gint current_page;
+ gboolean inverted_colors;
g_assert (view->document);
*page_ready = TRUE;
current_page = ev_document_model_get_page (view->model);
+ inverted_colors = ev_document_model_get_inverted_colors (view->model);
ev_document_misc_paint_one_page (view->layout.bin_window,
GTK_WIDGET (view),
page_area, border,
- page == current_page);
+ page == current_page,
+ inverted_colors);
if (gdk_rectangle_intersect (&real_page_area, expose_area, &overlap)) {
gint width, height;