Skip to content
Browse files

This commit was manufactured by cvs2svn to create tag

'LIBGDIPLUS_0_1'.

svn path=/tags/LIBGDIPLUS_0_1/libgdiplus/; revision=22646
  • Loading branch information...
3 parents 7395001 + d0fc828 + 4a026ec commit 6857b48d194dfb6d3b95f88941c2e6aaa2748368 nobody committed
Showing with 497 additions and 0 deletions.
  1. +142 −0 autogen.sh
  2. +355 −0 src/ChangeLog
View
142 autogen.sh
@@ -0,0 +1,142 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+# Ripped off from GNOME macros version
+
+DIE=0
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+if [ -n "$MONO_PATH" ]; then
+ # from -> /mono/lib:/another/mono/lib
+ # to -> /mono /another/mono
+ for i in `echo ${MONO_PATH} | tr ":" " "`; do
+ i=`dirname ${i}`
+ if [ -n "{i}" -a -d "${i}/share/aclocal" ]; then
+ ACLOCAL_FLAGS="-I ${i}/share/aclocal $ACLOCAL_FLAGS"
+ fi
+ if [ -n "{i}" -a -d "${i}/bin" ]; then
+ PATH="${i}/bin:$PATH"
+ fi
+ done
+ export PATH
+fi
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: You must have \`autoconf' installed to compile Mono."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+if [ -z "$LIBTOOL" ]; then
+ LIBTOOL=`which glibtool 2>/dev/null`
+ if [ ! -x "$LIBTOOL" ]; then
+ LIBTOOL=`which libtool`
+ fi
+fi
+
+(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
+ ($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: You must have \`libtool' installed to compile Mono."
+ echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+ }
+}
+
+grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
+ grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
+ (gettext --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: You must have \`gettext' installed to compile Mono."
+ echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+ }
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: You must have \`automake' installed to compile Mono."
+ echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+ NO_AUTOMAKE=yes
+}
+
+
+# if no automake, don't bother testing for aclocal
+test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "**Error**: Missing \`aclocal'. The version of \`automake'"
+ echo "installed doesn't appear recent enough."
+ echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+}
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+if test -z "$*"; then
+ echo "**Warning**: I am going to run \`configure' with no arguments."
+ echo "If you wish to pass any to it, please specify them on the"
+ echo \`$0\'" command line."
+ echo
+fi
+
+case $CC in
+xlc )
+ am_opt=--include-deps;;
+esac
+
+
+if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
+ if test -z "$NO_LIBTOOLIZE" ; then
+ echo "Running libtoolize..."
+ ${LIBTOOL}ize --force --copy
+ fi
+fi
+
+echo "Running aclocal $ACLOCAL_FLAGS ..."
+aclocal $ACLOCAL_FLAGS || {
+ echo
+ echo "**Error**: aclocal failed. This may mean that you have not"
+ echo "installed all of the packages you need, or you may need to"
+ echo "set ACLOCAL_FLAGS to include \"-I \$prefix/share/aclocal\""
+ echo "for the prefix where you installed the packages whose"
+ echo "macros were not found"
+ exit 1
+}
+
+if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
+ echo "Running autoheader..."
+ autoheader || { echo "**Error**: autoheader failed."; exit 1; }
+fi
+
+echo "Running automake --gnu $am_opt ..."
+automake --add-missing --gnu $am_opt ||
+ { echo "**Error**: automake failed."; exit 1; }
+echo "Running autoconf ..."
+autoconf || { echo "**Error**: autoconf failed."; exit 1; }
+
+if test -d $srcdir/libgc; then
+ echo Running libgc/autogen.sh ...
+ (cd $srcdir/libgc ; NOCONFIGURE=1 ./autogen.sh "$@")
+ echo Done running libgc/autogen.sh ...
+fi
+
+
+conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
+
+if test x$NOCONFIGURE = x; then
+ echo Running $srcdir/configure $conf_flags "$@" ...
+ $srcdir/configure $conf_flags "$@" \
+ && echo Now type \`make\' to compile $PKG_NAME || exit 1
+else
+ echo Skipping configure process.
+fi
View
355 src/ChangeLog
@@ -0,0 +1,355 @@
+2004-01-29 Duncan Mak <duncan@ximian.com>
+
+ * bitmap.c (gdip_bitmap_dispose): Add a check for own_scan0.
+ (GdipCreateBitmapFromScan0): Set own_scan0 flag if we own the
+ incoming buffer, scan0.
+
+ * gdip.h (GdipBitmapData): Add new field, own_scan0.
+
+2004-01-26 Duncan Mak <duncan@ximian.com>
+
+ * bitmap.c (GdipCreateBitmapFromScan0): Use GdipAlloc here instead
+ of malloc.
+ (gdip_bitmap_dispose): Call GdipFree on bitmap->data.scan0 here.
+
+ Jordi did the work for this, not me; I'm just the messenger.
+
+2004-01-26 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c (GdipDrawPath): Doh! Added stupid breaks inside the
+ switch, so we can draw simple paths (lines) now. For more complex
+ curves, the array is holding some NaNs, so I'll need to look into
+ that.
+
+ * bitmap.c:
+ (GdipCreateBitmapFromScan0): Set allocate memory for scan0 if it
+ is NULL. Thanks to Jordi for fixing this, we can now write out to
+ a file again.
+
+2004-01-26 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c: Use C style comments instead of C++ style.
+
+ * pen.c (clone_dash_array): new helper function.
+ (GdipClonePen): Copy matrix and dash_array, removed the FIXME.
+
+2004-01-23 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c (GdipDrawPath): Implemented.
+
+2004-01-20 Ravindra <rkumar@novell.com>
+
+ * pen.c (GdipGetPenTransform): Fixed function signature, this
+ fixes bug #52811.
+
+2004-01-19 Duncan Mak <duncan@ximian.com>
+
+ * graphics-path.c (GdipGetPathPoints): Fixed.
+ (GdipCreatePath): Remember to initialize the arrays instead of
+ just setting them to NULL.
+ (GdipGetPathTypes, GdipGetPathPoints): Fix signature.
+
+ * Makefile (local_sources): Add graphics-path.c to the build.
+
+2004-01-13 Duncan Mak <duncan@ximian.com>
+
+ * matrix.c (GdipCreateMatrix): Use gdip_get_status instead of just
+ returning Ok;
+
+2004-01-13 Bernie Solomon <bernard@ugsolutions.com>
+
+ * graphics-path.c (append): fix struct initialization
+ for old fashioned C compilers
+
+2004-01-13 Ravindra <rkumar@novell.com>
+
+ * pen.c: Initialized pen.matrix field to identity matrix.
+
+2004-01-10 Alexandre Pigolkine <pigolkine@gmx.de>
+ * bitmap.c
+ * brush.c cosmetic changes
+ * gdip.h new field added to GpPen structure
+ * gdip_win32.h conditional compilation flag used to reflect changes in Cairo > 0.14
+ * graphics.c restore position in GRAPHICS_STATE stack
+ * matrix.c order of matrices in GdipMultiplyMatrix changed
+ * pen.c initialization of fields, protection in GdipDeletePen function added
+
+2003-12-25 Duncan Mak <duncan@ximian.com>
+
+ * graphics-path.c (GdipAddPathLine): Use append instead of
+ append_point.
+ (GdipTransformPath): Remember to reset the points after the
+ transformation.
+
+2003-12-25 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c (DrawBezier, DrawBezierI): Well, it's pretty obvious
+ that the code was incorrect before. After Christmas, I'm gonna
+ hook up the GraphicsPath code and work on testing and making sure
+ this stuff is correct. I'm pretty sure, in a first pass, there are
+ lots of littles bugs waiting to be fixed.
+
+ * graphics-path.c (new_point): Removed, we now pack the point
+ inside the append functions.
+ (append): New function that takes the X, Y coordinates directly.
+ (append_bezier): Take coordinates instead of GpPointFs. Use the
+ new append function instead of append_point.
+
+2003-12-23 Duncan Mak <duncan@ximian.com>
+
+ * graphics-path.c:
+ * graphics-path.h: Implemented GraphicsPath.
+
+ * Makefile: Added graphics-path.c.
+
+ * gdip.h (GpPathPointType, GpWarpMode): Added.
+
+2003-12-21 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c (C1): Made it more precise.
+ (make_pie): Fixed.
+ (make_arc): New helper function for getting the right Bezier for
+ an elliptical arc, based on an algorithm found in the
+ comp.text.pdf FAQ.
+
+2003-12-02 Bernie Solomon <bernard@ugsolutions.com>
+
+ * pen.c (GdipSetPenLineCap): fix arg type so it compiles
+ using HP compiler.
+
+ * gdip.h: fix spelling of GdipSetPenLineJoin and add
+ prototype for GdipGetPenLineJoin
+
+2003-11-28 Duncan Mak <duncan@ximian.com>
+
+ * brush.c (gdip_brush_setup): Check on the type of the brush and
+ delegate the implementation to the concrete Brushes,
+ (GdipCloneBrush, GdipDeleteBrush, GdipGetBrushType): Implemented.
+
+ * gdip.h (DashStyle): Fixed typo.
+ (PenAlignment, BrushType): Added new enumerations.
+ (GpBrush): Added new type field.
+ (GpPen): Added new fields: color, brush, mode, dash_array and
+ unit. Updated the header file to include new Pen functions.
+
+ * pen.c (convert_dash_array): Utitlity function for converting
+ from a float* from GDI+ to a double* for Cairo.
+ (GdipCreatePen2, GdipClonePen): Implemented.
+ (PenWidth, BrushFill, Color, PenMode, PenUnit, DashStyle):
+ (DashOffset, DashCount, DashArray): Implemented the Get/Set
+ function pairs for these properties.
+ (GdipGetPenCompoundArray, GdipSetPenCompoundArray):
+ (GdipGetPenCompoundArrayCount): Stubbed.
+
+ * solidbrush.c (gdip_solidfill_init): Utility for initializing a
+ SolidBrush. Sets type as BrushTypeSolidColor.
+ (gdip_solidfill_setup): Moved from gdip_brush_setup.
+ (gdip_solidfill_clone): Implementation for GdipCloneBrush for a
+ GpSolidFill.
+ (GdipSetSolidFillColor, GdipGetSolidFillColor): Implemented.
+
+2003-11-22 Duncan Mak <duncan@ximian.com>
+
+ * matrix.c (GdipCreateMatrix3, GdipCreateMatrix3I): Implemented.
+ (GdipCloneMatrix): Fixed.
+ (GdipShearMatrix, set_shear): Implemented.
+
+ * graphics.c:
+ (GdipGetWorldTransform, GdipMultiplyWorldTransform): Implemented.
+ (GdipRotatePenTransform, GdipTranslatePenTransform): Use GDI+
+ functions instead.
+
+ * gdip.h
+ (GdipRotatePenTransform, GdipTranslatePenTransform): Fix
+ signature.
+ (GdipCreateMatrix3, GdipCreateMatrix3I): Use const appropriately.
+
+2003-11-17 Duncan Mak <duncan@ximian.com>
+
+ * matrix.c (matrix_equals): New helper function help test matrix
+ equality.
+ (GdipIsMatrixIdentity, GdipIsMatrixEqual): Use matrix_equals.
+ (GdipGetMatrixElements): Don't malloc here, because the caller
+ should hand us an allocated array.
+
+2003-11-16 Duncan Mak <duncan@ximian.com>
+
+ * matrix.c (GdipCreateMatrix2, GdipCreateMatrix3)
+ (GdipCreateMatrix3I): Implemented.
+
+ * pen.c (GdipResetPenTransform):
+ (GdipMultiplyPenTransform, GdipTranslatePenTransform):
+ (GdipScalePenTransform, GdipRotatePenTransform): Implemented.
+
+ * matrix.c (set_translate, set_scale, set_rotate): Helper
+ functions copied from Cairo. We are doing this because you can
+ specify the order of multiplcation in GDI+, but not in Cairo.
+
+2003-11-15 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c: Moved PI and GRADTORAD to gdip.h.
+ * gdip.h: Renamed GRADTORAD to DEGTORAD.
+
+ * matrix.c (GdipCloneMatrix): Fix argument order.
+ * matrix.c
+ (GdipMultiplyMatrix, GdipTranslateMatrix, GdipScaleMatrix):
+ (GdipRotateMatrix, GdipInvertMatrix):
+ (GdipTransformMatrixPoints, GdipVectorTransformMatrixPoints):
+ (GdipSetMatrixElements, GdipGetMatrixElements):
+ (GdipIsMatrixInvertible): Implemented.
+
+ * matrix.c (GdipIsMatrixIdentity, GdipIsMatrixEqual): Implemented.
+
+2003-11-14 Duncan Mak <duncan@ximian.com>
+
+ * general.c (gdip_get_status): Take cairo_status_t instead of
+ cairo_t. We need this because this is used in matrix.c and we only
+ have cairo_matrix_t there.
+ * graphics.c: Updated calls to gdip_get_status.
+
+ * pen.c
+ (convert_line_cap, convert_line_join): Added static keyword.
+ (GdipDeletePen): Implemented.
+
+ * matrix.c
+ (GdipCreateMatrix2, GdipCloneMatrix, GdipInvertMatrix): Use
+ gdip_get_status instead of just returning Ok.
+ (GdipRotateMatrix, GdipScaleMatrix, GdipTranslateMatrix):
+ Implemented.
+
+2003-11-12 Duncan Mak <duncan@ximian.com>
+
+ * bitmap.c, brush.c, general.c:
+ * graphics.c, image.c, matrix.c:
+ * pen.c, solidbrush.c: Use gdip.h instead of gdip_main.h.
+
+ * gdip.h: New header file, merged from gdip_main.h and
+ gdip_defs.h.
+
+ * gdip_main.h, gdip_defs.h: Removed.
+
+ * pen.c
+ (convert_line_join, convert_line_cap): new function for converting
+ enumerations between GDI+ and Cairo.
+ (gdip_pen_setup): set miter limit and line join.
+ (GdipSetPenMiterLimit, GdipGetPenMiterLimit):
+ (GdipSetPenLineJoin, GdipGetPenLineJoin):
+ (GdipSetPenLineJoin, GdipGetPenTransform): implemented.
+
+2003-11-12 Alexandre Pigolkine <pigolkine@gmx.de>
+ * bitmap.c copy image funciton added
+
+2003-11-06 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c (GdipDrawRectangle): Add call to gdip_pen_setup so
+ that we stroke with the right color.
+
+2003-11-05 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c
+ (make_pie, make_ellipse, make_polygon): Add static keyword.
+
+ * gdip_defs.h: Update headers to include DrawBezier, DrawBeziers,
+ DrawEllipse, DrawPie, DrawPolygon, DrawRectangle, FillEllipse,
+ FillPolygon and the RenderingOrigin property.
+
+ * Makefile (install-local): Added missing semi-colons.
+
+2003-11-03 Bernie Solomon <bernard@ugsolutions.com>
+
+ * gdip_main.h, gdip_win32.h, gdip_win32.c:
+ fixes for non-GCC compilers
+
+2003-11-02 Alexandre Pigolkine <pigolkine@gmx.de>
+
+ * bitmap.c convert 24/32 bpp images in LockBits
+
+2003-11-01 Duncan Mak <duncan@ximian.com>
+
+ * matrix.c
+ (GdipCreateMatrix, GdipCreateMatrix2, GdipCloneMatrix):
+ (GdipDeleteMatrix, GdipInvertMatrix): Implemented; the rest of the
+ functions are stubbed out.
+
+ * gdip_defs.h (GpMatrixOrder): Added.
+
+ * gdip_main.h
+ (GpRect, GpRectF): Synonyms for Rect and RectF.
+ (GpMatrix): An alias of cairo_matrix_t.
+
+ * Makefile: Added matrix.c.
+
+2003-10-28 Duncan Mak <duncan@ximian.com>
+
+ * gdip_main.h, gdip_def.h:
+ Renamed all gdip_foo_ptr types are now GpFoo *.
+ Renamed Status to GpStatus.
+ Reformatted all C++ style comments to C style comments.
+ Reformatted all C function prototypes to the style used by GTK+.
+
+ * gdip_main.h (GpPoint, GpPointF): Added.
+
+ * gdip_defs.h (GpFillMode): Added.
+
+ * graphics.c (make_ellipse):
+ (make_polygon, make_polygon_from_integers):
+ (make_pie): private functions (make_foo) to be reused by DrawFoo
+ and FillFoo.
+
+ (convert_fill_mode): Converts a GpFillMode to a cairo_fill_rule_t.
+
+ (GdipDrawPie, GdipFillEllipse, GdipFillPolygon): Implemented.
+
+2003-10-26 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c
+ (GdipSetRenderingOrigin, GdipGetRenderingOrigin): Implemented.
+
+2003-10-25 Duncan Mak <duncan@ximian.com>
+
+ * graphics.c
+ (GdipDrawBezier, GdipDrawBezierI):
+ (GdipDrawBeziers, GdipDrawBeziersI):
+ (GdipDrawLine, GdipDrawLineI):
+ (GdipDrawLines, GdipDrawLinesI): implemented.
+
+ (GdipFillRectangle):
+ (GdipDrawString): Make use of gdip_get_status.
+
+ * general.c
+ (gdip_get_status): A new function for retrieving a Status from a
+ cairo_t.
+
+2003-10-23 Miguel de Icaza <miguel@ximian.com>
+
+ * bitmap.c (GdipCreateBitmapFromScan0): Do not allocate buffer
+ here, expect that our caller to allocate that.
+
+ Do not compute the stride here, expect our caller to do this
+ properly.
+
+ * Use the Mono coding conventions.
+
+2003-10-15 Alexandre Pigolkine <pigolkine@gmx.de>
+ * image.c GdipDrawImageRectI changed
+
+2003-10-14 Alexandre Pigolkine <pigolkine@gmx.de>
+ * gdip_defs.h
+ * graphics.c
+ * gdip_main.h
+ DrawString function added
+
+2003-10-12 Alexandre Pigolkine <pigolkine@gmx.de>
+ * bitmap.c
+ * brush.c
+ * gdip_defs.h
+ * gdip_win32.c
+ * gdip_win32.h
+ * gdip_main.h
+ * general.c
+ * graphics.c
+ * image.c
+ * Makefile
+ * pen.c
+ * solidbrush.c
+ Added

0 comments on commit 6857b48

Please sign in to comment.
Something went wrong with that request. Please try again.