Skip to content

Commit

Permalink
Change default logo filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
TOMATO-ONE committed Sep 19, 2022
1 parent f4ccb86 commit c9b711f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion xrdp/xrdp_login_wnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,13 @@ xrdp_login_wnd_create(struct xrdp_wm *self)
/* if logo image not specified, use default */
if (globals->ls_logo_filename[0] == 0)
{
g_snprintf(globals->ls_logo_filename, 255, "%s/xrdp_logo.bmp", XRDP_SHARE_PATH);
#ifdef USE_IMLIB2
g_snprintf(globals->ls_logo_filename, 255, XRDP_SHARE_PATH
"/xrdp_logo_1.png");
#else
g_snprintf(globals->ls_logo_filename, 255, XRDP_SHARE_PATH
"/xrdp_logo_1.bmp");
#endif
}

/* logo image */
Expand All @@ -921,6 +927,8 @@ xrdp_login_wnd_create(struct xrdp_wm *self)
g_snprintf(globals->ls_logo_filename, 255, "%s/ad256.bmp", XRDP_SHARE_PATH);
}

LOG(LOG_LEVEL_DEBUG, "ls_logo_filename: %s", globals->ls_logo_filename);

xrdp_bitmap_load(but, globals->ls_logo_filename, self->palette,
globals->ls_bg_color,
globals->ls_logo_transform,
Expand Down

0 comments on commit c9b711f

Please sign in to comment.