diff engine/core/view/camera.cpp @ 34:d66538926e78

fix getPixelRGBA - it should return r g b and not r b g... why did everyone use the wrong order instead of fixing the reason? :)
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 00:20:26 +0000
parents 1e3b68c260a6
children 90005975cdbb
line wrap: on
line diff
--- a/engine/core/view/camera.cpp	Fri Jul 11 15:42:54 2008 +0000
+++ b/engine/core/view/camera.cpp	Sat Jul 12 00:20:26 2008 +0000
@@ -314,7 +314,7 @@
 					x = static_cast<int>(round(fx / fsw * fow));
 					y = static_cast<int>(round(fy / fsh * foh));
 				}
-				vc.image->getPixelRGBA(x, y, &r, &b, &g, &a);
+				vc.image->getPixelRGBA(x, y, &r, &g, &b, &a);
 				// instance is hit with mouse if not totally transparent
 				if (a != 0) {
 					instances.push_back(i);
@@ -349,7 +349,7 @@
 							x = static_cast<int>(round(fx / fsw * fow));
 							y = static_cast<int>(round(fy / fsh * foh));
 						}
-						vc.image->getPixelRGBA(x, y, &r, &b, &g, &a);
+						vc.image->getPixelRGBA(x, y, &r, &g, &b, &a);
 						// instance is hit with mouse if not totally transparent
 						if (a != 0) {
 							instances.push_back(i);