[libbluray-devel] IG: fixed background when button image position changes

hpi1 git at videolan.org
Fri Aug 23 09:26:19 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 23 10:11:24 2013 +0300| [8f4a0368ce2e2e9dd229b84a72df67de1c2d82cf] | committer: hpi1

IG: fixed background when button image position changes

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

 src/libbluray/decoders/graphics_controller.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/decoders/graphics_controller.c b/src/libbluray/decoders/graphics_controller.c
index 893f68c..8e3cf93 100644
--- a/src/libbluray/decoders/graphics_controller.c
+++ b/src/libbluray/decoders/graphics_controller.c
@@ -1195,9 +1195,11 @@ static void _render_button(GRAPHICS_CONTROLLER *gc, BD_IG_BUTTON *button, BD_PG_
         return;
     }
 
-    /* new object is smaller than already drawn one ? -> need to render background */
+    /* new object is smaller than already drawn one, or in different position ? -> need to render background */
     if (bog_data->w > object->width ||
-        bog_data->h > object->height) {
+        bog_data->h > object->height ||
+        bog_data->x != button->x_pos ||
+        bog_data->y != button->y_pos) {
 
         /* make sure we won't wipe other buttons */
         unsigned ii, skip = 0;



More information about the libbluray-devel mailing list