[Fix] Fixed an invalid type cast from DWORD to an Uint32
This commit is contained in:
parent
f06b6b15ca
commit
d5ed83dce7
@ -88,7 +88,7 @@ void AABB::CreateAABBFromSprite(const char* filename) {
|
|||||||
for(int height = 0; height < _surface->h; height++) {
|
for(int height = 0; height < _surface->h; height++) {
|
||||||
// FUCKING PAIN IN THE ASS MOTHERFUCKER!!!!
|
// FUCKING PAIN IN THE ASS MOTHERFUCKER!!!!
|
||||||
Uint32 offset = height * screen->pitch + width;
|
Uint32 offset = height * screen->pitch + width;
|
||||||
if(((DWORD)pixels[offset]) != 0 && !found) {
|
if(((Uint32)pixels[offset]) != 0 && !found) {
|
||||||
_min = Vec2((float)width, (float)height);
|
_min = Vec2((float)width, (float)height);
|
||||||
found = true;
|
found = true;
|
||||||
color = ((Uint32)pixels[offset]);
|
color = ((Uint32)pixels[offset]);
|
||||||
|
Loading…
Reference in New Issue
Block a user