[libbluray-devel] BDGraphics: Fix drawing images with negative source coordinates

Ian Curtis git at videolan.org
Mon Sep 8 23:18:00 CEST 2014


libbluray | branch: master | Ian Curtis <i.curtis at gmail.com> | Mon Sep  8 23:05:24 2014 +0300| [6bedb1857e542e9fce546946ef6474bd87eed26e] | committer: hpi1

BDGraphics: Fix drawing images with negative source coordinates

Fixes animations with some BD-J menus.

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

 ChangeLog                                           |    2 ++
 src/libbluray/bdj/java/java/awt/BDGraphicsBase.java |    3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ef01a51..d773b69 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+- Fix animations in some BD-J menus.
+
 2014-09-03: Version 0.6.2
 - Fix possible subtitle corruption after seek.
 - Fix some main path embedded HDMV menus.
diff --git a/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java b/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
index 5b74385..4f0890e 100644
--- a/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
+++ b/src/libbluray/bdj/java/java/awt/BDGraphicsBase.java
@@ -1022,8 +1022,7 @@ abstract class BDGraphicsBase extends Graphics2D implements ConstrainableGraphic
         boolean flipX, boolean flipY,
         Color bg, ImageObserver observer) {
 
-        if ((sx < 0) || (sy < 0) ||
-            (sw == 0) || (sh == 0) || (dw == 0) || (dh == 0))
+        if ((sw == 0) || (sh == 0) || (dw == 0) || (dh == 0))
             return false;
 
         BDImage bdImage;



More information about the libbluray-devel mailing list