[Pixelle-commit] SF.net SVN: pixelle:[296] trunk/pixelle/src/com/mebigfatguy/pixelle/ SelectionOutl
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-07-22 05:53:09
|
Revision: 296
http://pixelle.svn.sourceforge.net/pixelle/?rev=296&view=rev
Author: dbrosius
Date: 2009-07-22 05:53:08 +0000 (Wed, 22 Jul 2009)
Log Message:
-----------
fix looking for unselected bits
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/SelectionOutliner.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/SelectionOutliner.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/SelectionOutliner.java 2009-07-22 05:49:39 UTC (rev 295)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/SelectionOutliner.java 2009-07-22 05:53:08 UTC (rev 296)
@@ -50,12 +50,14 @@
if (!xedge && !yedge) {
pixel = inRaster.getPixels(col - 1, row - 1, 3, 3, pixel);
+ boolean foundUnselected = false;
for (int p = 0; p < 9; p++) {
if (pixel[p] == 0) {
+ foundUnselected = true;
break;
}
}
- pixel[0] = 0.0;
+ pixel[0] = foundUnselected ? 1.0 : 0.0;
}
outRaster.setPixel(col, row, pixel);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|