nanogui: Problem with BMP


Previous by date: 9 Feb 2010 15:09:16 -0000 Re: some error occur when compile snapshop version microwindows, loody
Next by date: 9 Feb 2010 15:09:16 -0000 Re: Problem with BMP, Greg Haerr
Previous in thread:
Next in thread: 9 Feb 2010 15:09:16 -0000 Re: Problem with BMP, Greg Haerr

Subject: Problem with BMP
From: Matej Gutman ####@####.####
Date: 9 Feb 2010 15:09:16 -0000
Message-Id: <606cd00e1002090709s261c0712l90fe8a52d373539e@mail.gmail.com>

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

Previous by date: 9 Feb 2010 15:09:16 -0000 Re: some error occur when compile snapshop version microwindows, loody
Next by date: 9 Feb 2010 15:09:16 -0000 Re: Problem with BMP, Greg Haerr
Previous in thread:
Next in thread: 9 Feb 2010 15:09:16 -0000 Re: Problem with BMP, Greg Haerr


Powered by ezmlm-browse 0.20.