mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-11 08:40:15 +01:00
Update name from "0.5 porting guide" to "1.0 porting guide."
This commit is contained in:
parent
aa4b9f4b00
commit
2cd76fc77f
2 changed files with 16 additions and 3 deletions
|
|
@ -1,5 +1,10 @@
|
|||
2005-08-24 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* PORTING_GUIDE: Update name from "0.5 porting guide" to "1.0
|
||||
porting guide."
|
||||
|
||||
2005-08-24 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* README: Some text cleanups from Øyvind Kolås.
|
||||
|
||||
2005-08-24 Carl Worth <cworth@cworth.org>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
...-----=======-----...
|
||||
Cairo 0.5 Porting Guide
|
||||
Cairo 1.0 Porting Guide
|
||||
...-----=======-----...
|
||||
|
||||
Here are some notes on more easily porting cairo_code from cairo 0.4
|
||||
to cairo 0.5. It is sorted roughly in order of importance, (the items
|
||||
to cairo 1.0. It is sorted roughly in order of importance, (the items
|
||||
near the top are expected to affect the most people).
|
||||
|
||||
Automated API renamings
|
||||
|
|
@ -224,11 +224,19 @@ Was: cairo_set_rgb_color (cr, 0., 0., 0.);
|
|||
cairo_rectangle (cr, 0., 0., surface_width, surface_height);
|
||||
cairo_fill (cr);
|
||||
|
||||
or: cairo_set_rgb_color (cr, 0., 0., 0.);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
|
||||
cairo_rectangle (cr, 0., 0., surface_width, surface_height);
|
||||
cairo_fill (cr);
|
||||
|
||||
Now: cairo_set_source_rgba (cr, 0., 0., 0., 0.);
|
||||
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_paint (cr);
|
||||
|
||||
NOTE: Using cairo_rectanlgle and fill would still work just fine. It's
|
||||
or: cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
|
||||
cairo_paint (cr);
|
||||
|
||||
NOTE: Using cairo_rectangle and fill would still work just fine. It's
|
||||
just a lot more convenient to use cairo_paint now, (particularly
|
||||
as it doesn't require you to even know what the bounds of the
|
||||
target surface are).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue