소스 검색

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

Alexander Hendrich 11 년 전
부모
커밋
dcba119aba
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
         }
     }