summaryrefslogtreecommitdiffstats
path: root/qadevOOo/runner/graphical/PixelCounter.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner/graphical/PixelCounter.java')
-rw-r--r--qadevOOo/runner/graphical/PixelCounter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/runner/graphical/PixelCounter.java b/qadevOOo/runner/graphical/PixelCounter.java
index 10dab09451d9..0c0fd711d724 100644
--- a/qadevOOo/runner/graphical/PixelCounter.java
+++ b/qadevOOo/runner/graphical/PixelCounter.java
@@ -118,7 +118,7 @@ class CountNotBlack extends CountPixel
class graphics_stuff
{
- public static void countPixel(ImageHelper img, int _x, int _y, int _w, int _h, CountPixel _aPixelCounter)
+ public static void countPixel(ImageHelper img, int _w, int _h, CountPixel _aPixelCounter)
{
for (int y = 0; y < _h; y++) {
for (int x = 0; x < _w; x++) {
@@ -132,7 +132,7 @@ class graphics_stuff
final int h = _aImage.getHeight();
CountPixel aCountNotWhite = new CountNotWhite();
- countPixel(_aImage, 0, 0, w, h, aCountNotWhite);
+ countPixel(_aImage, w, h, aCountNotWhite);
return aCountNotWhite.getCount();
}
@@ -142,7 +142,7 @@ class graphics_stuff
final int h = _aImage.getHeight();
CountPixel aCountNotBlack = new CountNotBlack();
- countPixel(_aImage, 0, 0, w, h, aCountNotBlack);
+ countPixel(_aImage, w, h, aCountNotBlack);
return aCountNotBlack.getCount();
}
}