Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update name from "0.5 porting guide" to "1.0 porting guide."
  • Loading branch information
Carl Worth committed Aug 24, 2005
1 parent aa4b9f4 commit 2cd76fc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -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>
Expand Down
14 changes: 11 additions & 3 deletions PORTING_GUIDE
@@ -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
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 2cd76fc

Please sign in to comment.