mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 15:55:14 +00:00
The default icon was broken since the addition of XPM support (May '03).
This fixes it for 2.7. Now to figure out how _I_ broke it in pre-2.8.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
const char rcsid_x11 =
|
||||
"$Id: x11.c,v 1.32 2006/02/04 20:40:27 wmcbrine Exp $";
|
||||
"$Id: x11.c,v 1.33 2006/02/15 07:46:36 wmcbrine Exp $";
|
||||
#endif
|
||||
|
||||
extern AppData app_data;
|
||||
@@ -590,7 +590,7 @@ int XCursesSetupX(char *display_name, int argc, char *argv[])
|
||||
XCursesGetIcon();
|
||||
|
||||
#ifdef HAVE_XPM_H
|
||||
if (XCURSESPIXMAPFILE != NULL)
|
||||
if (XCURSESPIXMAPFILE != NULL && strcmp(XCURSESPIXMAPFILE, "") != 0)
|
||||
XtVaSetValues(topLevel, XtNminWidth, minwidth,
|
||||
XtNminHeight, minheight, XtNiconPixmap,
|
||||
icon_pixmap, XtNiconMask, icon_pixmap_mask, NULL);
|
||||
|
||||
Reference in New Issue
Block a user