git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2542 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent 309accb983
commit 416b4e5c6b

@ -75,7 +75,7 @@ public class ymageMatrix implements Cloneable {
private boolean grabComplementary = false;
public ymageMatrix(ymageMatrix matrix) throws RuntimeException {
if (serverMemory.available(1024 * 1024 + 3 * width * height, true)) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available");
if (!(serverMemory.available(1024 * 1024 + 3 * width * height, true))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available");
// clones the matrix
this.width = matrix.width;
this.height = matrix.height;
@ -93,7 +93,7 @@ public class ymageMatrix implements Cloneable {
}
public ymageMatrix(int width, int height, long backgroundColor) {
if (serverMemory.available(1024 * 1024 + 3 * width * height, true)) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available");
if (!(serverMemory.available(1024 * 1024 + 3 * width * height, true))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available");
this.width = width;
this.height = height;
this.defaultColR = 0xFF;

Loading…
Cancel
Save