Skip to content

Commit

Permalink
ChangeLog: Updated ChangeLog.
Browse files Browse the repository at this point in the history
test.bmp, test.gif, test.png: Added files to prevent seg fault.
testgdi.c: Minor modification of adding print stmts.

svn path=/trunk/libgdiplus/; revision=29264
  • Loading branch information
Sanja Gupta committed Jun 11, 2004
1 parent 1bfaaef commit e16beba
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ChangeLog
@@ -1,3 +1,8 @@
2004-06-11 Sanjay Gupta <gsanjay@novell.com>

* test.bmp, test.gif, test.png: Added files to prevent seg fault.
* testgdi.c: Minor modification of adding print stmts.

2004-04-23 Vladimir Vukicevic <vladimir@pobox.com> 2004-04-23 Vladimir Vukicevic <vladimir@pobox.com>


* Makefile.am: removed $(NULL), to deal with older/non-gnu make * Makefile.am: removed $(NULL), to deal with older/non-gnu make
Expand Down
Binary file added tests/test.bmp
Binary file not shown.
Binary file added tests/test.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/test.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions tests/testgdi.c
Expand Up @@ -58,6 +58,8 @@ win_draw(win_t *win)
g_free (unis); g_free (unis);
GdipDisposeImage (img); GdipDisposeImage (img);
img = NULL; img = NULL;

printf("jpg drawn \n");


unis = g_utf8_to_utf16 ("test.tif", -1, NULL, NULL, NULL); unis = g_utf8_to_utf16 ("test.tif", -1, NULL, NULL, NULL);
st = GdipLoadImageFromFile (unis, &img); st = GdipLoadImageFromFile (unis, &img);
Expand All @@ -68,6 +70,8 @@ win_draw(win_t *win)
GdipDisposeImage (img); GdipDisposeImage (img);
img = NULL; img = NULL;


printf("tif drawn \n");

unis = g_utf8_to_utf16 ("test.gif", -1, NULL, NULL, NULL); unis = g_utf8_to_utf16 ("test.gif", -1, NULL, NULL, NULL);
st = GdipLoadImageFromFile (unis, &img); st = GdipLoadImageFromFile (unis, &img);
CHECK_GDIP_ST(st); CHECK_GDIP_ST(st);
Expand All @@ -77,6 +81,8 @@ win_draw(win_t *win)
GdipDisposeImage (img); GdipDisposeImage (img);
img = NULL; img = NULL;


printf("gif drawn \n");

unis = g_utf8_to_utf16 ("test.png", -1, NULL, NULL, NULL); unis = g_utf8_to_utf16 ("test.png", -1, NULL, NULL, NULL);
st = GdipLoadImageFromFile (unis, &img); st = GdipLoadImageFromFile (unis, &img);
CHECK_GDIP_ST(st); CHECK_GDIP_ST(st);
Expand All @@ -86,6 +92,8 @@ win_draw(win_t *win)
GdipDisposeImage (img); GdipDisposeImage (img);
img = NULL; img = NULL;


printf("png drawn \n");

unis = g_utf8_to_utf16 ("test.bmp", -1, NULL, NULL, NULL); unis = g_utf8_to_utf16 ("test.bmp", -1, NULL, NULL, NULL);
st = GdipLoadImageFromFile (unis, &img); st = GdipLoadImageFromFile (unis, &img);
CHECK_GDIP_ST(st); CHECK_GDIP_ST(st);
Expand All @@ -94,6 +102,9 @@ win_draw(win_t *win)
g_free (unis); g_free (unis);
GdipDisposeImage (img); GdipDisposeImage (img);
img = NULL; img = NULL;

printf("bmp drawn \n");

} }


int int
Expand Down

0 comments on commit e16beba

Please sign in to comment.