From 2974a59878ff8b846ddee7153a9f2c6981a1cf1e Mon Sep 17 00:00:00 2001
From: Gary Frost <frost.gary@gmail.com>
Date: Fri, 12 Oct 2012 20:04:44 +0000
Subject: [PATCH]

---
 samples/mandel/src/com/amd/aparapi/sample/mandel/Main.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 2e041c0c..91665b00 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;
 
-- 
GitLab