[libbluray-devel] render background when button not found

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:14:30 2011 +0300| [1848d01d6721d2966c20adef7a986b627d7e63ab] | committer: hpi1

render background when button not found

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

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

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 3e3034a..f775c02 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -718,7 +718,12 @@ static void _render_page(GRAPHICS_CONTROLLER *gc,
         if (!button) {
             GC_TRACE("_render_page(): bog %d: button %d not found\n", ii, valid_id);
 
+            // render background
+            _clear_bog_area(gc, &gc->bog_data[ii]);
+
         } else if (button->id == activated_button_id) {
+            GC_TRACE("    button #%d activated\n", button->id);
+
             _render_button(gc, button, palette, BTN_ACTIVATED, &gc->bog_data[ii]);
 
         } else if (button->id == selected_button_id) {



More information about the libbluray-devel mailing list