[libbluray-devel] BDImageConsumer: update dirty area
hpi1
git at videolan.org
Sun Apr 17 21:41:58 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Apr 17 19:42:40 2016 +0300| [936b91e043e849921ac38c8518878565af18b6c4] | committer: hpi1
BDImageConsumer: update dirty area
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=936b91e043e849921ac38c8518878565af18b6c4
---
src/libbluray/bdj/java/java/awt/BDImageConsumer.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libbluray/bdj/java/java/awt/BDImageConsumer.java b/src/libbluray/bdj/java/java/awt/BDImageConsumer.java
index a076873..3f54a29 100644
--- a/src/libbluray/bdj/java/java/awt/BDImageConsumer.java
+++ b/src/libbluray/bdj/java/java/awt/BDImageConsumer.java
@@ -158,6 +158,7 @@ class BDImageConsumer extends BDImage implements ImageConsumer {
for (Y = y; Y < (y + h); Y++)
for (X = x; X < (x + w); X++)
backBuffer[Y * width + X] = cm.getRGB(pixels[offset + (Y - y) * scansize + (X - x)] & 0xFF);
+ dirty.add(new Rectangle(x, y, w, h));
status |= ImageObserver.SOMEBITS;
notifyObservers(this, ImageObserver.SOMEBITS, x, y, w, h);
}
@@ -167,6 +168,7 @@ class BDImageConsumer extends BDImage implements ImageConsumer {
for (Y = y; Y < (y + h); Y++)
for (X = x; X < (x + w); X++)
backBuffer[Y * width + X] = cm.getRGB(pixels[offset + (Y - y) * scansize + (X - x)]);
+ dirty.add(new Rectangle(x, y, w, h));
status |= ImageObserver.SOMEBITS;
notifyObservers(this, ImageObserver.SOMEBITS, x, y, w, h);
}
More information about the libbluray-devel
mailing list