From 1785298ed1de7923d678b9386e682d157be850d8 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sat, 6 Jul 2002 16:36:43 +0000 Subject: Button areas in the nav packets are in screen coordinated. Overlay clipping areas are in overlay coordinates. Therefore, up to now, the menu highlight positions were only correct, when the menu subpicture started at (0,0) on screen. Although this seems to be common, it is not necessarily true and I have dvds here, for which it is not. The fix is easy: Correctly convert the button areas to clipping areas by subtracting the subpictures display offset. CVS patchset: 2221 CVS date: 2002/07/06 16:36:43 --- src/libspudec/xine_decoder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libspudec/xine_decoder.c') diff --git a/src/libspudec/xine_decoder.c b/src/libspudec/xine_decoder.c index 3f2036ccb..dd3b5484c 100644 --- a/src/libspudec/xine_decoder.c +++ b/src/libspudec/xine_decoder.c @@ -19,7 +19,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: xine_decoder.c,v 1.70 2002/07/05 17:32:03 mroi Exp $ + * $Id: xine_decoder.c,v 1.71 2002/07/06 16:36:43 mroi Exp $ * * stuff needed to turn libspu into a xine decoder plugin */ @@ -247,7 +247,8 @@ static void spudec_event_listener(void *this_gen, xine_event_t *event_gen) { #ifdef LOG_NAV fprintf(stderr, "libspudec:Button Overlay\n"); #endif - spudec_copy_nav_to_overlay(&this->pci, this->state.clut, this->buttonN, but->show-1, overlay ); + spudec_copy_nav_to_overlay(&this->pci, this->state.clut, this->buttonN, but->show-1, + overlay, &this->overlay ); pthread_mutex_unlock(&this->nav_pci_lock); } else { fprintf (stderr,"libspudec:xine_decoder.c:spudec_event_listener:HIDE ????\n"); -- cgit v1.2.3