gimp r25739 - in trunk: . app/core
- From: martinn svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25739 - in trunk: . app/core
- Date: Wed, 21 May 2008 19:11:42 +0000 (UTC)
Author: martinn
Date: Wed May 21 19:11:42 2008
New Revision: 25739
URL: http://svn.gnome.org/viewvc/gimp?rev=25739&view=rev
Log:
2008-05-21 Martin Nordholts <martinn svn gnome org>
* app/core/gimpscanconvert.c (gimp_scan_convert_add_polyline):
constify the points argument.
Modified:
trunk/ChangeLog
trunk/app/core/gimpscanconvert.c
trunk/app/core/gimpscanconvert.h
Modified: trunk/app/core/gimpscanconvert.c
==============================================================================
--- trunk/app/core/gimpscanconvert.c (original)
+++ trunk/app/core/gimpscanconvert.c Wed May 21 19:11:42 2008
@@ -159,10 +159,10 @@
* specify open polygons.
*/
void
-gimp_scan_convert_add_polyline (GimpScanConvert *sc,
- guint n_points,
- GimpVector2 *points,
- gboolean closed)
+gimp_scan_convert_add_polyline (GimpScanConvert *sc,
+ guint n_points,
+ const GimpVector2 *points,
+ gboolean closed)
{
GimpVector2 prev = { 0.0, 0.0, };
cairo_path_data_t pd;
Modified: trunk/app/core/gimpscanconvert.h
==============================================================================
--- trunk/app/core/gimpscanconvert.h (original)
+++ trunk/app/core/gimpscanconvert.h Wed May 21 19:11:42 2008
@@ -22,52 +22,52 @@
GimpScanConvert * gimp_scan_convert_new (void);
-void gimp_scan_convert_free (GimpScanConvert *sc);
-void gimp_scan_convert_set_pixel_ratio (GimpScanConvert *sc,
- gdouble ratio_xy);
-void gimp_scan_convert_set_clip_rectangle (GimpScanConvert *sc,
- gint x,
- gint y,
- gint width,
- gint height);
-void gimp_scan_convert_add_polyline (GimpScanConvert *sc,
- guint n_points,
- GimpVector2 *points,
- gboolean closed);
-void gimp_scan_convert_stroke (GimpScanConvert *sc,
- gdouble width,
- GimpJoinStyle join,
- GimpCapStyle cap,
- gdouble miter,
- gdouble dash_offset,
- GArray *dash_info);
-void gimp_scan_convert_render_full (GimpScanConvert *sc,
- TileManager *tile_manager,
- gint off_x,
- gint off_y,
- gboolean replace,
- gboolean antialias,
- guchar value);
+void gimp_scan_convert_free (GimpScanConvert *sc);
+void gimp_scan_convert_set_pixel_ratio (GimpScanConvert *sc,
+ gdouble ratio_xy);
+void gimp_scan_convert_set_clip_rectangle (GimpScanConvert *sc,
+ gint x,
+ gint y,
+ gint width,
+ gint height);
+void gimp_scan_convert_add_polyline (GimpScanConvert *sc,
+ guint n_points,
+ const GimpVector2 *points,
+ gboolean closed);
+void gimp_scan_convert_stroke (GimpScanConvert *sc,
+ gdouble width,
+ GimpJoinStyle join,
+ GimpCapStyle cap,
+ gdouble miter,
+ gdouble dash_offset,
+ GArray *dash_info);
+void gimp_scan_convert_render_full (GimpScanConvert *sc,
+ TileManager *tile_manager,
+ gint off_x,
+ gint off_y,
+ gboolean replace,
+ gboolean antialias,
+ guchar value);
-void gimp_scan_convert_render (GimpScanConvert *sc,
- TileManager *tile_manager,
- gint off_x,
- gint off_y,
- gboolean antialias);
-void gimp_scan_convert_render_value (GimpScanConvert *sc,
- TileManager *tile_manager,
- gint off_x,
- gint off_y,
- guchar value);
-void gimp_scan_convert_compose (GimpScanConvert *sc,
- TileManager *tile_manager,
- gint off_x,
- gint off_y);
-void gimp_scan_convert_compose_value (GimpScanConvert *sc,
- TileManager *tile_manager,
- gint off_x,
- gint off_y,
- gint value);
+void gimp_scan_convert_render (GimpScanConvert *sc,
+ TileManager *tile_manager,
+ gint off_x,
+ gint off_y,
+ gboolean antialias);
+void gimp_scan_convert_render_value (GimpScanConvert *sc,
+ TileManager *tile_manager,
+ gint off_x,
+ gint off_y,
+ guchar value);
+void gimp_scan_convert_compose (GimpScanConvert *sc,
+ TileManager *tile_manager,
+ gint off_x,
+ gint off_y);
+void gimp_scan_convert_compose_value (GimpScanConvert *sc,
+ TileManager *tile_manager,
+ gint off_x,
+ gint off_y,
+ gint value);
#endif /* __GIMP_SCAN_CONVERT_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]