Skip to content

Commit 2cd76fc

Browse files
committed
Update name from "0.5 porting guide" to "1.0 porting guide."
1 parent aa4b9f4 commit 2cd76fc

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
2005-08-24 Carl Worth <[email protected]>
22

3+
* PORTING_GUIDE: Update name from "0.5 porting guide" to "1.0
4+
porting guide."
5+
6+
2005-08-24 Carl Worth <[email protected]>
7+
38
* README: Some text cleanups from Øyvind Kolås.
49

510
2005-08-24 Carl Worth <[email protected]>

PORTING_GUIDE

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
...-----=======-----...
2-
Cairo 0.5 Porting Guide
2+
Cairo 1.0 Porting Guide
33
...-----=======-----...
44

55
Here are some notes on more easily porting cairo_code from cairo 0.4
6-
to cairo 0.5. It is sorted roughly in order of importance, (the items
6+
to cairo 1.0. It is sorted roughly in order of importance, (the items
77
near the top are expected to affect the most people).
88

99
Automated API renamings
@@ -224,11 +224,19 @@ Was: cairo_set_rgb_color (cr, 0., 0., 0.);
224224
cairo_rectangle (cr, 0., 0., surface_width, surface_height);
225225
cairo_fill (cr);
226226

227+
or: cairo_set_rgb_color (cr, 0., 0., 0.);
228+
cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
229+
cairo_rectangle (cr, 0., 0., surface_width, surface_height);
230+
cairo_fill (cr);
231+
227232
Now: cairo_set_source_rgba (cr, 0., 0., 0., 0.);
228233
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
229234
cairo_paint (cr);
230235

231-
NOTE: Using cairo_rectanlgle and fill would still work just fine. It's
236+
or: cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
237+
cairo_paint (cr);
238+
239+
NOTE: Using cairo_rectangle and fill would still work just fine. It's
232240
just a lot more convenient to use cairo_paint now, (particularly
233241
as it doesn't require you to even know what the bounds of the
234242
target surface are).

0 commit comments

Comments
 (0)