ports/audio/wsoundprefs/files/patch-src-main.c
Pav Lucistnik 5155c1f383 - link against fontconfig [1] and libXft [2]
- misc WM api changes [1] and [2]
- XClearArea -> XFillRectangle with gray [1] because XClearArea is for Window
  not Drawable (was causing X BadWindow error)

  [1] me
  [2] ports/75000 Serge Gagnon <ser_gagnon@sympatico.ca>

If you hit "play" with a nonexistant file, the program dies - but apart from
that it's now functional again.

PR:		ports/79746
Submitted by:	Sam Lawrance <boris@brooknet.com.au>
2005-04-10 16:35:23 +00:00

14 lines
443 B
C

--- src/main.c.orig Mon Jun 14 17:28:23 1999
+++ src/main.c Sun Apr 10 20:51:47 2005
@@ -109,9 +109,9 @@
wwarning(_("could not load image file %s:%s"), path, RMessageForError(RErrorCode));
else {
icon = WMCreatePixmapFromRImage(scr, tmp, 0);
- RDestroyImage(tmp);
+ RReleaseImage(tmp);
if (icon) {
- WMSetApplicationIconImage(scr, icon);
+ WMSetApplicationIconPixmap(scr, icon);
WMReleasePixmap(icon);
}
}