diff options
| author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2005-09-24 19:08:26 +0000 |
|---|---|---|
| committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2005-09-24 19:08:26 +0000 |
| commit | 37cc903c609ca656a71852e5f50731f0b43bdda0 (patch) | |
| tree | 50d8c59540de4b6ef20b24acd784903764b99522 /src/video_out/x11osd.c | |
| parent | 097426600056a112752e92eb1c13f0d6900f3907 (diff) | |
| download | xine-lib-37cc903c609ca656a71852e5f50731f0b43bdda0.tar.gz xine-lib-37cc903c609ca656a71852e5f50731f0b43bdda0.tar.bz2 | |
- rename all clip_top, clip_left, clip_color... to hili_xxxx. that
"clip" thing has caused too much confusion already since these variables
define a highlight area.
- add overlay offset support to video_out.c/alphablend/vo drivers
- use overlay offset to implement proper croping of frames when vo
driver doesn't support it
- add clipping checks to alphablend to avoid buffer overflow, buffer
"underflow" and wrapping.
- increase vo api number
- note: dxr3 support is incomplete about overlay offset
CVS patchset: 7739
CVS date: 2005/09/24 19:08:26
Diffstat (limited to 'src/video_out/x11osd.c')
| -rw-r--r-- | src/video_out/x11osd.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/video_out/x11osd.c b/src/video_out/x11osd.c index 24eba0f36..ec9a663f1 100644 --- a/src/video_out/x11osd.c +++ b/src/video_out/x11osd.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: x11osd.c,v 1.13 2004/11/13 17:13:41 miguelfreitas Exp $ + * $Id: x11osd.c,v 1.14 2005/09/24 19:08:26 miguelfreitas Exp $ * * x11osd.c, use X11 Nonrectangular Window Shape Extension to draw xine OSD * @@ -467,16 +467,16 @@ void x11osd_blend(x11osd *osd, vo_overlay_t *overlay) width = len; len = 0; } - if ((y >= overlay->clip_top) && (y <= overlay->clip_bottom) && (x <= overlay->clip_right)) { - if ((x < overlay->clip_left) && (x + width - 1 >= overlay->clip_left)) { - width -= overlay->clip_left - x; - len += overlay->clip_left - x; + if ((y >= overlay->hili_top) && (y <= overlay->hili_bottom) && (x <= overlay->hili_right)) { + if ((x < overlay->hili_left) && (x + width - 1 >= overlay->hili_left)) { + width -= overlay->hili_left - x; + len += overlay->hili_left - x; } - else if (x > overlay->clip_left) { + else if (x > overlay->hili_left) { use_clip_palette = 1; - if (x + width - 1 > overlay->clip_right) { - width -= overlay->clip_right - x; - len += overlay->clip_right - x; + if (x + width - 1 > overlay->hili_right) { + width -= overlay->hili_right - x; + len += overlay->hili_right - x; } } } @@ -487,8 +487,8 @@ void x11osd_blend(x11osd *osd, vo_overlay_t *overlay) uint8_t *src_trans; if (use_clip_palette) { - src_clut = (clut_t *)&overlay->clip_color; - src_trans = (uint8_t *)&overlay->clip_trans; + src_clut = (clut_t *)&overlay->hili_color; + src_trans = (uint8_t *)&overlay->hili_trans; } else { src_clut = (clut_t *)&overlay->color; |
