Bug 3277

Summary: cairo_image_surface_create_for_data() args
Product: cairo Reporter: Owen Taylor <otaylor>
Component: image backendAssignee: Carl Worth <cworth>
Status: RESOLVED NOTABUG QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 0.9.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Owen Taylor 2005-05-12 07:49:33 UTC
cairo_surface_t *
cairo_image_surface_create (cairo_format_t      format,
                            int                 width,
                            int                 height);

cairo_surface_t *
cairo_image_surface_create_for_data (unsigned char             *data,
                                     cairo_format_t             format,
                                     int                        width,
                                     int                        height,
                                     int                        stride);

The fact that one arg is added before and one after is just really
peculiar. I'd strongly suggest that both args should be added after,
which also fits in the "optional argument" idea.
Comment 1 Owen Taylor 2005-07-23 00:22:40 UTC
While I'm not sure I quite agree, the current ordering is intentional
and explained in:

http://lists.freedesktop.org/archives/cairo/2005-May/003974.html
Comment 2 Carl Worth 2005-08-22 17:14:23 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.