CreateCompatibleBitmap error if bitmap>16M in Win98?

Real time World War II combat simulation
Post Reply
kirbykern
Posts: 5
Joined: Fri Jul 07, 2006 7:51 pm

CreateCompatibleBitmap error if bitmap>16M in Win98?

Post by kirbykern » Thu Sep 06, 2007 9:01 pm

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.

User avatar
Sean OConnor
Posts: 1299
Joined: Fri Sep 03, 2004 7:47 am
Location: Cambridge, UK
Contact:

Post by Sean OConnor » Fri Sep 07, 2007 10:01 am

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.

kirbykern
Posts: 5
Joined: Fri Jul 07, 2006 7:51 pm

Post by kirbykern » Fri Sep 07, 2007 8:21 pm

Yes, I can't argue with numbers like that. I am still on the fence regarding a buy.

Thanks for the quick response.

Regards,

Kirby

Post Reply