mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 04:58:04 +02:00
win32-printing: remove unused code
This commit is contained in:
parent
b854d1e1b5
commit
fb2bf3e250
1 changed files with 0 additions and 17 deletions
|
|
@ -701,11 +701,6 @@ _cairo_win32_printing_surface_paint_linear_pattern (cairo_win32_surface_t *surfa
|
||||||
|
|
||||||
if (!SetWorldTransform (surface->dc, &xform))
|
if (!SetWorldTransform (surface->dc, &xform))
|
||||||
return _cairo_win32_print_gdi_error ("_win32_printing_surface_paint_linear_pattern:SetWorldTransform2");
|
return _cairo_win32_print_gdi_error ("_win32_printing_surface_paint_linear_pattern:SetWorldTransform2");
|
||||||
GetWorldTransform(surface->dc, &xform);
|
|
||||||
p1x = 0.0;
|
|
||||||
p1y = 0.0;
|
|
||||||
p2x = d;
|
|
||||||
p2y = 0;
|
|
||||||
|
|
||||||
GetClipBox (surface->dc, &clip);
|
GetClipBox (surface->dc, &clip);
|
||||||
|
|
||||||
|
|
@ -839,9 +834,6 @@ _cairo_win32_printing_surface_paint_pattern (cairo_win32_surface_t *surface,
|
||||||
|
|
||||||
typedef struct _win32_print_path_info {
|
typedef struct _win32_print_path_info {
|
||||||
cairo_win32_surface_t *surface;
|
cairo_win32_surface_t *surface;
|
||||||
cairo_line_cap_t line_cap;
|
|
||||||
cairo_point_t last_move_to_point;
|
|
||||||
cairo_bool_t has_sub_path;
|
|
||||||
} win32_path_info_t;
|
} win32_path_info_t;
|
||||||
|
|
||||||
static cairo_status_t
|
static cairo_status_t
|
||||||
|
|
@ -849,9 +841,6 @@ _cairo_win32_printing_surface_path_move_to (void *closure, cairo_point_t *point)
|
||||||
{
|
{
|
||||||
win32_path_info_t *path_info = closure;
|
win32_path_info_t *path_info = closure;
|
||||||
|
|
||||||
path_info->last_move_to_point = *point;
|
|
||||||
path_info->has_sub_path = FALSE;
|
|
||||||
|
|
||||||
if (path_info->surface->has_ctm) {
|
if (path_info->surface->has_ctm) {
|
||||||
double x, y;
|
double x, y;
|
||||||
|
|
||||||
|
|
@ -1293,7 +1282,6 @@ _cairo_win32_printing_surface_show_glyphs (void *abstract_surfac
|
||||||
int i;
|
int i;
|
||||||
cairo_matrix_t old_ctm;
|
cairo_matrix_t old_ctm;
|
||||||
cairo_bool_t old_has_ctm;
|
cairo_bool_t old_has_ctm;
|
||||||
XFORM xform;
|
|
||||||
cairo_solid_pattern_t clear;
|
cairo_solid_pattern_t clear;
|
||||||
|
|
||||||
if (op == CAIRO_OPERATOR_CLEAR) {
|
if (op == CAIRO_OPERATOR_CLEAR) {
|
||||||
|
|
@ -1356,11 +1344,6 @@ _cairo_win32_printing_surface_show_glyphs (void *abstract_surfac
|
||||||
}
|
}
|
||||||
|
|
||||||
SaveDC (surface->dc);
|
SaveDC (surface->dc);
|
||||||
|
|
||||||
xform.eM11 = 1.0f;
|
|
||||||
xform.eM21 = 0.0f;
|
|
||||||
xform.eM12 = 0.0f;
|
|
||||||
xform.eM22 = 1.0f;
|
|
||||||
old_ctm = surface->ctm;
|
old_ctm = surface->ctm;
|
||||||
old_has_ctm = surface->has_ctm;
|
old_has_ctm = surface->has_ctm;
|
||||||
surface->has_ctm = TRUE;
|
surface->has_ctm = TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue