[libbluray-devel] Fixed resetting frame buffer dirty area

hpi1 git at videolan.org
Wed Apr 24 22:46:57 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Apr 24 23:46:02 2013 +0300| [825ef985341275189630540c471c6c6b11904166] | committer: hpi1

Fixed resetting frame buffer dirty area

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

 src/libbluray/bdj/java/java/awt/BDRootWindow.java |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/libbluray/bdj/java/java/awt/BDRootWindow.java b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
index 822be9e..f02e89f 100644
--- a/src/libbluray/bdj/java/java/awt/BDRootWindow.java
+++ b/src/libbluray/bdj/java/java/awt/BDRootWindow.java
@@ -86,9 +86,11 @@ public class BDRootWindow extends Frame {
             }
             changeCount = 0;
 
-            Libbluray.updateGraphic(getWidth(), getHeight(), backBuffer, dirty.x, dirty.y, dirty.width, dirty.height);
-
-            dirty.setBounds(0xffff, 0xffff, 0, 0);
+            if ((dirty.width | dirty.height) >= 0) {
+                Libbluray.updateGraphic(getWidth(), getHeight(), backBuffer, dirty.x, dirty.y,
+                                        dirty.x + dirty.width, dirty.y + dirty.height);
+            }
+            dirty.setSize(-1, -1);
         }
     }
 



More information about the libbluray-devel mailing list