Commit e409e57f authored by Asbjørn Pettersen's avatar Asbjørn Pettersen
Browse files

add OS2 patches

parent e84bd1cf
Sun May 16 22:54:23 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
* plug-ins/xd/xd.c: Add OS/2 patches. include <sys/types.h>,,,
Thu May 13 19:17:58 CEST 1999 Marc Lehmann <pcg@goof.com>
* libgimp/gimp.[ch]: implement gimp_default_display.
......
......@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/wait.h>
#include <sys/stat.h>
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment