[Fix] Fixed an invalid type cast from DWORD to an Uint32

This commit is contained in:
Rtch90 2012-04-12 18:08:39 +01:00
parent f06b6b15ca
commit d5ed83dce7

View File

@ -88,7 +88,7 @@ void AABB::CreateAABBFromSprite(const char* filename) {
for(int height = 0; height < _surface->h; height++) {
// FUCKING PAIN IN THE ASS MOTHERFUCKER!!!!
Uint32 offset = height * screen->pitch + width;
if(((DWORD)pixels[offset]) != 0 && !found) {
if(((Uint32)pixels[offset]) != 0 && !found) {
_min = Vec2((float)width, (float)height);
found = true;
color = ((Uint32)pixels[offset]);