Page 1 of 1

CreateCompatibleBitmap error if bitmap>16M in Win98?

Posted: Thu Sep 06, 2007 9:01 pm
by kirbykern
Would this have anything to do with us not being able to run the demo?

I agree that it sucks that the stupid function does not give an error code when it fails. And they call this an operating system?????

It does say you can do a GetLastError under XP/NT/2000 but, of course, they don't have the 16M bitmap restriction.

Posted: Fri Sep 07, 2007 10:01 am
by Sean OConnor
Thanks for bringing that to my attention and I was not aware of that! Firefight uses a background bitmap which is 3,400x3,400 pixels big so that's 11,560,000 pixels in total. In the different colour depths that would be:

256 colours: 11MB
16 bit: 22MB
32 bit 44MB

so I guess that explains why you can't run the game on Win 95 or Win 98 unless you turned the colour depth right down to 256 colours.

I could split the background bitmap into four separate bitmaps and that was something I was considering doing but as those older Windows OSes only account for about 2% of Windows computers now it's going to have to be a low priority.

Posted: Fri Sep 07, 2007 8:21 pm
by kirbykern
Yes, I can't argue with numbers like that. I am still on the fence regarding a buy.

Thanks for the quick response.