Hi all!

I've noticed, that there is a problem with loading BMP files after
i've compiled for my new laptop. I've came to a conclusion, that it
has to do with the fact that i've compiled it on 64 bit architecture.
Problem:

- sizeof(unsigned long) = 8 on 64 bit machine
- sizeof(unsigned long) = 4 on 32 bit machine

After changing
typedef unsigned long       DWORD;
into
typedef unsigned int        DWORD;
i was able to load BMPs accordingly.

Few thoughts:

1) Why is there a new define of DWORD in image_bmp.c? Would be better
to include windef.h, right?
2) Maybe it would be better to define 64 bit architecture in config?
Something like X86_64_BIT?

Regards,
Matej

---------------------------------------------------------------------
To unsubscribe, e-mail: nanogui-unsubscr...@linuxhacker.org
For additional commands, e-mail: nanogui-h...@linuxhacker.org

Reply via email to