Browse Source

Merge branch 'master' of https://git.tk.informatik.tu-darmstadt.de/etri-smartspaces

Alexander Hendrich 11 years ago
parent
commit
dcba119aba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bbiwarg/DataSource/ImageData.cs

+ 2 - 2
bbiwarg/DataSource/ImageData.cs

@@ -53,8 +53,8 @@ namespace bbiwarg.DataSource
             if (u < 0 || v < 0)
                 return Color.Black;
 
-            int xInColorImage = (int) (u * colorImage.getWidth());
-            int yInColorImage = (int) (v * colorImage.getHeight());
+            int xInColorImage = (int) (u * colorImage.getWidth()) % colorImage.getWidth();
+            int yInColorImage = (int) (v * colorImage.getHeight()) % colorImage.getHeight();
             return colorImage.getColor(xInColorImage, yInColorImage);
         }
     }