Bug 3277 - cairo_image_surface_create_for_data() args
Summary: cairo_image_surface_create_for_data() args
Status: RESOLVED NOTABUG
Alias: None
Product: cairo
Classification: Unclassified
Component: image backend (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-12 07:49 UTC by Owen Taylor
Modified: 2005-08-22 00:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.