bmap_lock

Posted By: Superku

bmap_lock - 01/17/11 18:37

I cannot seem to get bmap_lock() to work properly, it always returns 8888 (on 24bit bitmaps). I've tried it with pre-defined and with dynamically created bitmaps and I've used bmap_to_format() directly in front of it.

I'm using 8.10.1, would be nice if anyone could make a test on that issue!
Posted By: Pappenheimer

Re: bmap_lock - 01/17/11 18:49

The following demo works with A8.02.0.
I don't have A8 installed yet.
Maybe, it serves as a testing ground.
http://www.puppenheim.org/snowing2.zip
Posted By: Superku

Re: bmap_lock - 01/17/11 18:57

Thanks Pappenheimer, but your code (bmap_lock) returns 8888, too. (Btw. the second "=" in if(format == 8888) is missing in your code.)
I want to have a different format than 8888, in particular 888.
Posted By: wdlmaster

Re: bmap_lock - 01/17/11 19:45

Yes, i can confirm this (using A7). It returns (and has always returned) 8888 - no matter what format the bitmap is.

a month ago, Caermundh came to the same conclusion:
Originally Posted By: Caermundh
I tested using 8888 and 24 bit bmaps, then 8888 and 32 bit bmaps. After that, i tried 888 and 24 & 32 bit bmaps. the only time anything worked was when i used 8888 and my bmaps were 32 bit.

I actually ended up dropping the bmap_createblack() call and using 2 bmaps instead. (BMAP* bmp1 and BMAP* bmp2). As stated, wdlmasters code worked perfectly once I saved the bmaps as 32 bit in Photoshop - pixel_to_bmap() also worked fine as well.

Once I saved the bitmaps in photoshop as 24 bit( as well as changing the code to use 888 format), pixel_to_bmap() simply wouldnt write pixels to the bitmap - as well as wdlmasters code.

Curiously, the format returned by bmap_lock was 8888 - period. Whether I was locking a 24 bit bmap or a 32 bit bmap - it returned 8888 like it thought it was dealing with 32-bit. At the time, I didnt pay any attention because the manual had stated that formats are automatically "upconverted" depending on the video card. Maybe bmap_lock() is the culprit?

Posted By: Superku

Re: bmap_lock - 01/17/11 19:48

Ok thanks, I will make a bug report then.
Posted By: Nomi

Re: bmap_lock - 01/17/11 20:30

hi leute hätte mall ne frage wie kann man ein panel verschieben

wen ich es mit pan_create erstellt habe?

mit pan_setpos gehts ürgend wie net.

mfg Nomi
Posted By: Superku

Re: bmap_lock - 01/17/11 20:57

Was soll dein Post bitte in diesem Topic?!
© 2024 lite-C Forums