[libbluray-devel] Reset valid mouse position when page changes

hpi1 git at videolan.org
Wed Oct 19 14:25:15 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Oct 19 15:02:31 2011 +0300| [1cd8c7574d4ca8139da00c32a36e11b7f6d79921] | committer: hpi1

Reset valid mouse position when page changes

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1cd8c7574d4ca8139da00c32a36e11b7f6d79921
---

 src/libbluray/decoders/graphics_controller.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 93a77e9..882d219 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -481,6 +481,8 @@ static void _select_page(GRAPHICS_CONTROLLER *gc, uint16_t page_id)
 
     uint16_t button_id = _find_selected_button_id(gc);
     _select_button(gc, button_id);
+
+    gc->valid_mouse_position = 0;
 }
 
 static void _gc_reset(GRAPHICS_CONTROLLER *gc)
@@ -489,6 +491,7 @@ static void _gc_reset(GRAPHICS_CONTROLLER *gc)
     _close_osd(gc, BD_OVERLAY_IG);
 
     gc->popup_visible = 0;
+    gc->valid_mouse_position = 0;
 
     graphics_processor_free(&gc->igp);
     graphics_processor_free(&gc->pgp);



More information about the libbluray-devel mailing list