diff --git a/samples/mandel/src/com/amd/aparapi/sample/mandel/Main.java b/samples/mandel/src/com/amd/aparapi/sample/mandel/Main.java index 2e041c0c1e40087829420e5210bcfa38974f71e3..91665b000d0893461c3e33cff827aa78f43fea3c 100644 --- a/samples/mandel/src/com/amd/aparapi/sample/mandel/Main.java +++ b/samples/mandel/src/com/amd/aparapi/sample/mandel/Main.java @@ -131,7 +131,7 @@ public class Main{ /** Translate the gid into an x an y value. */ float x = (((gid % width * scale) - ((scale / 2) * width)) / width) + offsetx; - float y = (((gid / height * scale) - ((scale / 2) * height)) / height) + offsety; + float y = (((gid / width * scale) - ((scale / 2) * height)) / height) + offsety; int count = 0;