Permalink
Browse files

2007-07-31 Sebastien Pouliot <sebastien@ximian.com>

	* graphics-path.c: Simplify GdipClosePathFigure.
	* text-[cairo|metafile]-private.h: Hide internal functions.


svn path=/trunk/libgdiplus/; revision=83126
  • Loading branch information...
1 parent 9ffd2d1 commit 2287835995ae3aa9a0997b88b51a131c1e5814fa Sebastien Pouliot committed Jul 31, 2007
Showing with 12 additions and 8 deletions.
  1. +5 −0 src/ChangeLog
  2. +2 −4 src/graphics-path.c
  3. +4 −3 src/text-cairo-private.h
  4. +1 −1 src/text-metafile-private.h
View
5 src/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-31 Sebastien Pouliot <sebastien@ximian.com>
+
+ * graphics-path.c: Simplify GdipClosePathFigure.
+ * text-[cairo|metafile]-private.h: Hide internal functions.
+
2007-07-31 Sebastien Pouliot <sebastien@ximian.com>
* graphics-path.c: Reverse PathTypes. Patch by Yves Bastide.
View
6 src/graphics-path.c
@@ -459,10 +459,8 @@ GdipClosePathFigure (GpPath *path)
return InvalidParameter;
if (path->count > 0) {
- BYTE current = g_array_index (path->types, BYTE, path->count - 1);
- g_byte_array_remove_index (path->types, path->count - 1);
- current |= PathPointTypeCloseSubpath;
- g_byte_array_append (path->types, &current, 1);
+ BYTE *last = &g_array_index (path->types, BYTE, path->count - 1);
+ *last |= PathPointTypeCloseSubpath;
}
path->start_new_fig = TRUE;
View
7 src/text-cairo-private.h
@@ -66,12 +66,13 @@ typedef struct {
} GpStringDetailStruct;
GpStatus cairo_DrawString (GpGraphics *graphics, GDIPCONST WCHAR *stringUnicode, int length, GDIPCONST GpFont *font,
- GDIPCONST RectF *rc, GDIPCONST GpStringFormat *format, GpBrush *brush);
+ GDIPCONST RectF *rc, GDIPCONST GpStringFormat *format, GpBrush *brush) GDIP_INTERNAL;
GpStatus cairo_MeasureString (GpGraphics *graphics, GDIPCONST WCHAR *stringUnicode, int length, GDIPCONST GpFont *font,
- GDIPCONST RectF *rc, GDIPCONST GpStringFormat *format, RectF *boundingBox, int *codepointsFitted, int *linesFilled);
+ GDIPCONST RectF *rc, GDIPCONST GpStringFormat *format, RectF *boundingBox, int *codepointsFitted, int *linesFilled)
+ GDIP_INTERNAL;
GpStatus cairo_MeasureCharacterRanges (GpGraphics *graphics, GDIPCONST WCHAR *stringUnicode, int length, GDIPCONST GpFont *font,
- GDIPCONST GpRectF *layout, GDIPCONST GpStringFormat *format, int regionCount, GpRegion **regions);
+ GDIPCONST GpRectF *layout, GDIPCONST GpStringFormat *format, int regionCount, GpRegion **regions) GDIP_INTERNAL;
#endif
View
2 src/text-metafile-private.h
@@ -30,6 +30,6 @@
#include "gdiplus-private.h"
GpStatus metafile_DrawString (GpGraphics *graphics, GDIPCONST WCHAR *stringUnicode, int length, GDIPCONST GpFont *font,
- GDIPCONST RectF *rc, GDIPCONST GpStringFormat *format, GpBrush *brush);
+ GDIPCONST RectF *rc, GDIPCONST GpStringFormat *format, GpBrush *brush) GDIP_INTERNAL;
#endif

0 comments on commit 2287835

Please sign in to comment.