[libbluray-devel] Close overlay when popup menu is not visible
hpi1
git at videolan.org
Sun Dec 11 15:25:48 CET 2011
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Dec 11 16:23:39 2011 +0200| [cd5667e333ee2beb9b16e8834afb5a6c85fce560] | committer: hpi1
Close overlay when popup menu is not visible
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=cd5667e333ee2beb9b16e8834afb5a6c85fce560
---
src/libbluray/decoders/graphics_controller.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index f07d5f3..6822717 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -743,9 +743,11 @@ static void _render_page(GRAPHICS_CONTROLLER *gc,
unsigned selected_button_id = bd_psr_read(gc->regs, PSR_SELECTED_BUTTON_ID);
if (s->ics->interactive_composition.ui_model == IG_UI_MODEL_POPUP && !gc->popup_visible) {
- GC_TRACE("_render_page(): popup menu not visible\n");
- _clear_osd(gc, BD_OVERLAY_IG);
+ if (gc->ig_open) {
+ GC_TRACE("_render_page(): popup menu not visible\n");
+ _close_osd(gc, BD_OVERLAY_IG);
+ }
return;
}
More information about the libbluray-devel
mailing list