diff options
author | phintuka <phintuka> | 2008-10-26 12:15:28 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-10-26 12:15:28 +0000 |
commit | 68272f79bd525b1c86d146eca05e7e6acff85fc0 (patch) | |
tree | ed8fe3d95280e2b6d0593116ce8fe3d4978cda4d | |
parent | 87037c5c309d01be7521e386d4250241c41e320c (diff) | |
download | xineliboutput-68272f79bd525b1c86d146eca05e7e6acff85fc0.tar.gz xineliboutput-68272f79bd525b1c86d146eca05e7e6acff85fc0.tar.bz2 |
Initialize unscaled HUD OSD surface to transparent
-rw-r--r-- | xine_sxfe_frontend.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index 2822f30a..7876c14c 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.86 2008-10-24 22:06:06 rofafor Exp $ + * $Id: xine_sxfe_frontend.c,v 1.87 2008-10-26 12:15:28 phintuka Exp $ * */ @@ -663,6 +663,11 @@ static int hud_osd_command(frontend_t *this_gen, struct osd_command_s *cmd) LOGDBG("HUD Set Size"); this->osd_width = (cmd->w > 0) ? cmd->w : OSD_DEF_WIDTH; this->osd_height = (cmd->h > 0) ? cmd->h : OSD_DEF_HEIGHT; + + XSetForeground(this->display, this->gc, 0x00000000); + XFillRectangle(this->display, this->surf_img->draw, this->gc, + 0, 0, this->osd_width+2, this->osd_height+2); + XFlush(this->display); break; case OSD_Set_RLE: /* Create/update OSD window. Data is rle-compressed. */ @@ -737,6 +742,8 @@ static int hud_osd_command(frontend_t *this_gen, struct osd_command_s *cmd) XSetForeground(this->display, this->gc, 0x00000000); XFillRectangle(this->display, this->hud_window, this->gc, 0, 0, this->x.width, this->x.height); + XFillRectangle(this->display, this->surf_img->draw, this->gc, + 0, 0, this->osd_width+2, this->osd_height+2); XFlush(this->display); break; |