Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
13128254
Commit
13128254
authored
Dec 07, 2012
by
Sebastian Ramacher
Browse files
Draw white background on correct cairo instance
parent
895a0dfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
print.c
View file @
13128254
...
...
@@ -121,11 +121,11 @@ cb_print_draw_page(GtkPrintOperation* UNUSED(print_operation), GtkPrintContext*
}
/* white background */
cairo_save
(
cairo
);
cairo_set_source_rgb
(
cairo
,
1
,
1
,
1
);
cairo_rectangle
(
cairo
,
0
,
0
,
width
,
height
);
cairo_fill
(
cairo
);
cairo_restore
(
cairo
);
cairo_save
(
temp_
cairo
);
cairo_set_source_rgb
(
temp_
cairo
,
1
,
1
,
1
);
cairo_rectangle
(
temp_
cairo
,
0
,
0
,
width
,
height
);
cairo_fill
(
temp_
cairo
);
cairo_restore
(
temp_
cairo
);
/* render the page to the temporary surface */
girara_debug
(
"printing page %d ..."
,
page_number
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment