From e409e57f3117f25bfd5aaeca5f3788210c8c2421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Pettersen?= Date: Sun, 16 May 1999 20:55:38 +0000 Subject: [PATCH] add OS2 patches --- ChangeLog | 4 ++++ plug-ins/xd/xd.c | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index cf51c82858..173365b571 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun May 16 22:54:23 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen) + + * plug-ins/xd/xd.c: Add OS/2 patches. include ,,, + Thu May 13 19:17:58 CEST 1999 Marc Lehmann * libgimp/gimp.[ch]: implement gimp_default_display. diff --git a/plug-ins/xd/xd.c b/plug-ins/xd/xd.c index cfadcd66ed..86ad9325c9 100644 --- a/plug-ins/xd/xd.c +++ b/plug-ins/xd/xd.c @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -611,10 +612,21 @@ gdk_pixmap_create_from_xpm_b (GdkWindow *window, gint len) { gchar* foo = "/tmp/foo.xpm"; +#ifdef __EMX__ + GParam* params; + gint retvals; +#endif FILE* f; g_print ("gdk_pixmap_create_from_xpm: this proceedure is slow because Peter is a wuss. it should be rewritten."); +#ifdef __EMX__ + params = gimp_run_procedure ("gimp_temp_name", + &retvals, + PARAM_STRING, "xpm", + PARAM_END); + foo = params[1].data.d_string; +#endif f = fopen (foo, "w"); fwrite (segment, len, 1, f);