PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

opacity bug on smartphone...

here is the blit result of the same bitmap 4 times :
Image
I think there is something wrong :(

the bitmap is a gif, 40pix width & height. Opacity is set to 200, but the problem is the same with 128 or anything else.

The problem appears on the real phone AND the emulator.

(the white box is drawn on the top of the bitmap)
I'm not sure about the Smartphone, but you can't use white as the transparency color on all PPC devices.
mmm, maybe it's my poor english (im french) but it's not really a problem of "transparency", but a probleme of "opacity". Look at the pict, first bitmap is clean, second have "double" pixel, third is ok, last is "doubled" again... This is the SAME code and bitmap. That's a gapidraw bug, not my fault...
Hi Stuff,

(1) Try to store the image in PNG format and see if it looks the same. GIF support on Pocket PCs and Smartphones are broken and does not work as expected. Microsoft has known about this for a long time, the problem is that many applications depend on the current broken implementation and would not work if it changed.

(2) Are you blitting to the same coordinates? If so, when does it work and when does it not work? I guess that it looks ok some times when you start your application, and some times it does not.
(1) the probleme is exactly the same with png8 AND png24...
(2) if you look at the first blit, the coordinates are 6,1 if i move to 5,1 the blit is broken (but the 3° is good, the 3° is broken, and 5° is good) Guess it's an "odd" problem...
Ok, thanks.. What operation are you using? AlphaBlt or AlphaBltFast? Are you using RGBA surfaces or separate image and alpha surface?
err... have to improve my english :)
I DON'T use any alpha surface :)

This is a simple BltFast with GDBLTFASTFX dwOpacity set to 200 (or whatever you want...) and the GDBLTFAST_OPACITY set.
stuff: Sorry, but I could not reproduce this issue with GapiDraw 2.01.

Please verify that you have the correct DLL. Are you really using GapiDraw 2.01 and none of the beta builds?
yes I have the last gapi draw build...
I dont have much time today, but i'm going to look further (maybe a corrupted installation, or mixed with another build...) Then I'll start a new project from scratch to see, then I'll send it to you if the problem remain.

But after some tests with the "simple" example, everything seems to be ok, i tried to change opacity and position of the "taskbar" and everything was ok... sorry for the alert, it should be problems in MY code :(

Gapidraw Rules ! ( Am I excused now ? :D )

but i didnt resolve my problem, i'll post here the solution and what was the problem...
i've juste tested with a modified "minimal" project, the problem is the same...
[url]stuffk.homeip.net/Minimal2.zip[/url]
here is my project, if someone can test it, just to see if there is a problem in my system...
The picture should be in the root "\dos.png" i put my pict in the ZIP file.

Tested with real smartphone and emulator.

You should see 2 bitmaps, first is not well displayed and second is good (first at 1,0 and second at 0,40)
Thanks a lot.. I found it... It is indeed a bug...
hope it's not too serious...
Looks like it doesn't want the x-coordinate to be an odd number, but an odd y-coordinate doesn't bother it.
It's fixed.. Just download GapiDraw 2.01b...