forked from AuroraMiddleware/gtk
Use cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
2006-06-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: Use cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution. (#344512, Elijah Newren)
This commit is contained in:
parent
61a9c9a75b
commit
289d59857f
@ -1,5 +1,10 @@
|
||||
2006-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkprintoperation.c:
|
||||
* modules/printbackends/pdf/gtkprintbackendpdf.c: Use
|
||||
cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
|
||||
(#344512, Elijah Newren)
|
||||
|
||||
* gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
|
||||
gdk work. (#344386, Masatake Yamamoto)
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
2006-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkprintoperation.c:
|
||||
* modules/printbackends/pdf/gtkprintbackendpdf.c: Use
|
||||
cairo_pdf_surface_set_dpi by cairo_surface_set_fallback_resolution.
|
||||
(#344512, Elijah Newren)
|
||||
|
||||
* gdk-2.0-uninstalled.pc.in: Make compiling against uninstalled
|
||||
gdk work. (#344386, Masatake Yamamoto)
|
||||
|
||||
|
@ -1796,7 +1796,7 @@ run_pdf (GtkPrintOperation *op,
|
||||
|
||||
surface = cairo_pdf_surface_create (priv->export_filename,
|
||||
width, height);
|
||||
cairo_pdf_surface_set_dpi (surface, 300, 300);
|
||||
cairo_surface_set_fallback_resolution (surface, 300, 300);
|
||||
|
||||
priv->platform_data = surface;
|
||||
priv->free_platform_data = (GDestroyNotify) cairo_surface_destroy;
|
||||
|
@ -193,7 +193,7 @@ pdf_printer_create_cairo_surface (GtkPrinter *printer,
|
||||
surface = cairo_pdf_surface_create_for_stream (_cairo_write, GINT_TO_POINTER (cache_fd), width, height);
|
||||
|
||||
/* TODO: DPI from settings object? */
|
||||
cairo_pdf_surface_set_dpi (surface, 300, 300);
|
||||
cairo_surface_set_fallback_resolution (surface, 300, 300);
|
||||
|
||||
return surface;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user