diff options
author | phintuka <phintuka> | 2012-01-19 13:04:32 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2012-01-19 13:04:32 +0000 |
commit | 1c6df98e5401fa078e8659554499d2644ff142f0 (patch) | |
tree | da5bf2b9d020810280093c6d363582b33395e23e | |
parent | bf171a53cf4ec6b34c0f574fb9ba6cf19d63ba87 (diff) | |
download | xineliboutput-1c6df98e5401fa078e8659554499d2644ff142f0.tar.gz xineliboutput-1c6df98e5401fa078e8659554499d2644ff142f0.tar.bz2 |
Build fix
-rw-r--r-- | xine_sxfe_frontend.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index 0c6c05d9..d4405f7a 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.173 2012-01-19 13:00:34 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.174 2012-01-19 13:04:32 phintuka Exp $ * */ @@ -782,6 +782,11 @@ static void hud_fill_img_memory(uint32_t* dst, int dst_pitch, static void hud_osd_draw(sxfe_t *this, const struct osd_command_s *cmd) { + int x = cmd->x + cmd->dirty_area.x1; + int y = cmd->y + cmd->dirty_area.y1; + int w = cmd->dirty_area.x2 - cmd->dirty_area.x1 + 1; + int h = cmd->dirty_area.y2 - cmd->dirty_area.y1 + 1; + #ifdef HAVE_OPENGL // If opengl is used: Just construct the bitmap // The scaling is done in the opengl thread @@ -810,10 +815,6 @@ static void hud_osd_draw(sxfe_t *this, const struct osd_command_s *cmd) XDouble scale_x = (XDouble)this->x.width / (XDouble)this->osd_width; XDouble scale_y = (XDouble)this->x.height / (XDouble)this->osd_height; - int x = cmd->x + cmd->dirty_area.x1; - int y = cmd->y + cmd->dirty_area.y1; - int w = cmd->dirty_area.x2 - cmd->dirty_area.x1 + 1; - int h = cmd->dirty_area.y2 - cmd->dirty_area.y1 + 1; int mask_changed; Xrender_Surf *dst_surf = this->surf_back_img ? this->surf_back_img : this->surf_win; |