Project

General

Profile

« Previous | Next » 

Revision 20b60ad9

Added by Leszek Koltunski about 2 years ago

Create the bandaged 3x3 icon: should work already, but it doesn't. Debug.

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorWorkerThread.java
140 140
      if( containsBlackness(tmp,width) ) return i;
141 141
      }
142 142

  
143
    return -1;
143
    return 0;
144 144
    }
145 145

  
146 146
///////////////////////////////////////////////////////////////////////////////////////////////////
......
157 157
      if( containsBlackness(tmp,width) ) return i;
158 158
      }
159 159

  
160
    return -1;
160
    return width-1;
161 161
    }
162 162

  
163 163
///////////////////////////////////////////////////////////////////////////////////////////////////
......
176 176

  
177 177
    int firstRow = computeFirstRow(input,tmp,width,height);
178 178
    int lastRow  = computeLastRow(input,tmp,width,height);
179

  
180 179
    int startRow = (firstRow+lastRow+width)/2;
181 180

  
182 181
    for(int i=0; i<width; i++)

Also available in: Unified diff