add OS2 patches

This commit is contained in:
Asbjørn Pettersen 1999-05-16 20:55:38 +00:00
parent e84bd1cfd3
commit e409e57f31
2 changed files with 16 additions and 0 deletions

View file

@ -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 <sys/types.h>,,,
Thu May 13 19:17:58 CEST 1999 Marc Lehmann <pcg@goof.com>
* libgimp/gimp.[ch]: implement gimp_default_display.

View file

@ -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);