diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-04-15 14:42:35 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-04-15 14:42:35 +0000 |
commit | bbe57d1faae6b2f9be7e92c8fd17a1134e6e6481 (patch) | |
tree | f6e5308236eb3ea4669227141a479a3871bba5fd | |
parent | 5419e144c8c5dfef7f9b43cb2c28b86d64e7b648 (diff) | |
download | xine-lib-bbe57d1faae6b2f9be7e92c8fd17a1134e6e6481.tar.gz xine-lib-bbe57d1faae6b2f9be7e92c8fd17a1134e6e6481.tar.bz2 |
to emulate pan&scan in letterboxed overlay mode, we zoom the image horzontally,
we have to compensate this distortion in the coordinate transformation to get
accurate menu highlight areas
CVS patchset: 6405
CVS date: 2004/04/15 14:42:35
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/dxr3/video_out_dxr3.c | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -17,6 +17,8 @@ xine-lib (1-rc4) * fix 24 bpp RGB output - may affect some users of xshm and fb * generate events for "Permission denied" and "File not found" in the http and file plugins + * DXR3: fix menu highlight areas in letterboxed overlay mode with + pan&scan content xine-lib (1-rc3c) * fix the deadlock with non-seekable input plugins diff --git a/src/dxr3/video_out_dxr3.c b/src/dxr3/video_out_dxr3.c index 59f996ea5..083f19d11 100644 --- a/src/dxr3/video_out_dxr3.c +++ b/src/dxr3/video_out_dxr3.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: video_out_dxr3.c,v 1.100 2004/04/10 15:29:57 mroi Exp $ + * $Id: video_out_dxr3.c,v 1.101 2004/04/15 14:42:35 mroi Exp $ */ /* mpeg1 encoding video out plugin for the dxr3. @@ -1197,6 +1197,11 @@ static int dxr3_gui_data_exchange(vo_driver_t *this_gen, int data_type, void *da rect->y = y1 - this->top_bar; rect->w = x2 - x1; rect->h = y2 - y1; + if (this->overlay_enabled && this->pan_scan) { + /* in this mode, the image is distorted, so we have to modify */ + rect->x = rect->x * 3 / 4 + this->scale.delivered_width / 8; + rect->w = rect->w * 3 / 4; + } } break; case XINE_GUI_SEND_VIDEOWIN_VISIBLE: |