diff options
author | marha <marha@users.sourceforge.net> | 2011-01-18 15:16:14 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-18 15:16:14 +0000 |
commit | 6efdcd7c1aa11b83b63640440af79f78f52ed0da (patch) | |
tree | 7b32b709394550f56e6f96f893165ebec902c97c /libXaw | |
parent | 75dc8a3966e1da6f1927808ca442b17af1789ccb (diff) | |
download | vcxsrv-6efdcd7c1aa11b83b63640440af79f78f52ed0da.tar.gz vcxsrv-6efdcd7c1aa11b83b63640440af79f78f52ed0da.tar.bz2 vcxsrv-6efdcd7c1aa11b83b63640440af79f78f52ed0da.zip |
Search for bitmaps in the current directory in stead of the HOME directory on windows
Diffstat (limited to 'libXaw')
-rw-r--r-- | libXaw/src/Pixmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)); |