summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_login_wnd.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2008-05-07 01:52:24 +0000
committerjsorg71 <jsorg71>2008-05-07 01:52:24 +0000
commit71f58fad8bddd07a708d04ff7d9e32b7c6268567 (patch)
treef62b64c2337694914f56ca2bbd7197fb06fcaf38 /xrdp/xrdp_login_wnd.c
parentef69b94717eb4f33caa691ade2537cbbfe2d1002 (diff)
downloadxrdp-proprietary-71f58fad8bddd07a708d04ff7d9e32b7c6268567.tar.gz
xrdp-proprietary-71f58fad8bddd07a708d04ff7d9e32b7c6268567.zip
use share path when loading files
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r--xrdp/xrdp_login_wnd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index bc15d940..784c06fa 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -444,6 +444,7 @@ xrdp_login_wnd_create(struct xrdp_wm* self)
{
struct xrdp_bitmap* but;
struct xrdp_bitmap* combo;
+ char file_path[256];
/* draw login window */
self->login_window = xrdp_bitmap_create(400, 200, self->screen->bpp,
@@ -461,7 +462,8 @@ xrdp_login_wnd_create(struct xrdp_wm* self)
/* image */
but = xrdp_bitmap_create(4, 4, self->screen->bpp, WND_TYPE_IMAGE, self);
- xrdp_bitmap_load(but, "xrdp256.bmp", self->palette);
+ g_snprintf(file_path, 255, "%s/xrdp256.bmp", XRDP_SHARE_PATH);
+ xrdp_bitmap_load(but, file_path, self->palette);
but->parent = self->screen;
but->owner = self->screen;
but->left = self->screen->width - but->width;
@@ -470,7 +472,8 @@ xrdp_login_wnd_create(struct xrdp_wm* self)
/* image */
but = xrdp_bitmap_create(4, 4, self->screen->bpp, WND_TYPE_IMAGE, self);
- xrdp_bitmap_load(but, "ad256.bmp", self->palette);
+ g_snprintf(file_path, 255, "%s/ad256.bmp", XRDP_SHARE_PATH);
+ xrdp_bitmap_load(but, file_path, self->palette);
but->parent = self->login_window;
but->owner = self->login_window;
but->left = 10;