From 6efdcd7c1aa11b83b63640440af79f78f52ed0da Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 18 Jan 2011 15:16:14 +0000 Subject: Search for bitmaps in the current directory in stead of the HOME directory on windows --- libXaw/src/Pixmap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libXaw') diff --git a/libXaw/src/Pixmap.c b/libXaw/src/Pixmap.c index a6fb5a342..d8e1f1dae 100644 --- a/libXaw/src/Pixmap.c +++ b/libXaw/src/Pixmap.c @@ -750,7 +750,11 @@ BitmapLoader(XawParams *params, Screen *screen, Colormap colormap, int depth, if (params->name[0] != '/' && params->name[0] != '.') { if (!sub[0].substitution) + #ifdef _MSC_VER + sub[0].substitution = "."; + #else sub[0].substitution = getenv("HOME"); + #endif sub[1].substitution = params->name; if (pixmap_path == NULL) GetResourcePixmapPath(DisplayOfScreen(screen)); -- cgit v1.2.3