diff options
author | phintuka <phintuka> | 2008-07-28 18:46:21 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-07-28 18:46:21 +0000 |
commit | 01c4068b4fe412ee44ce2517beea4304a11233cf (patch) | |
tree | be7c49c1b78a20995348bdb08958b7316a794636 | |
parent | 01e01ebddce661601283fdc79a0eaef06e4cf54c (diff) | |
download | xineliboutput-01c4068b4fe412ee44ce2517beea4304a11233cf.tar.gz xineliboutput-01c4068b4fe412ee44ce2517beea4304a11233cf.tar.bz2 |
Fixed setting window icon in amd64 systems
-rw-r--r-- | xine_sxfe_frontend.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index da200e39..d0d3b01b 100644 --- a/xine_sxfe_frontend.c +++ b/xine_sxfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_sxfe_frontend.c,v 1.80 2008-07-28 18:44:53 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.81 2008-07-28 18:46:21 phintuka Exp $ * */ @@ -935,12 +935,25 @@ static void set_icon(sxfe_t *this) { # include "vdrlogo_32x32.c" +#if defined(__WORDSIZE) && (__WORDSIZE == 32) /* Icon */ XChangeProperty(this->display, this->window[0], XInternAtom(this->display, "_NET_WM_ICON", False), XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &vdrlogo_32x32, 2 + vdrlogo_32x32.width*vdrlogo_32x32.height); +#else + long q[2+32*32]; + uint32_t *p = (uint32_t*)&vdrlogo_32x32; + int i; + for (i = 0; i < 2 + vdrlogo_32x32.width*vdrlogo_32x32.height; i++) + q[i] = p[i]; + XChangeProperty(this->display, this->window[0], + XInternAtom(this->display, "_NET_WM_ICON", False), + XA_CARDINAL, 32, PropModeReplace, + (unsigned char *) q, + 2 + vdrlogo_32x32.width*vdrlogo_32x32.height); +#endif } /* |