Skip to content

Commit

Permalink
pixel formats
Browse files Browse the repository at this point in the history
  • Loading branch information
ilammy committed Nov 10, 2018
1 parent 444d8f3 commit f5dd034
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/X11/xf_rail.c
Expand Up @@ -659,15 +659,15 @@ static void xf_rail_convert_icon(ICON_INFO* iconInfo, xfRailIcon *railIcon)
format = PIXEL_FORMAT_RGB24;
break;
case 32:
format = PIXEL_FORMAT_XRGB32;
format = PIXEL_FORMAT_ARGB32;
break;
default:
WLog_DBG(TAG, "invalid bpp: %d", iconInfo->bpp);
return;
}

if (!freerdp_image_copy(buffer, /* pDstData*/
PIXEL_FORMAT_XRGB32, /* DstFormat */
PIXEL_FORMAT_BGRA32, /* DstFormat */
0, /* nDstStep */
0, /* nXDst */
0, /* nYDst */
Expand All @@ -679,7 +679,7 @@ static void xf_rail_convert_icon(ICON_INFO* iconInfo, xfRailIcon *railIcon)
0, /* nXSrc */
0, /* nYSrc */
NULL, /* palette */
FREERDP_FLIP_NONE)) /* flags */
FREERDP_FLIP_VERTICAL)) /* flags */
{
WLog_DBG(TAG, "icon conversion failed");
return;
Expand Down

0 comments on commit f5dd034

Please sign in to comment.