MiToNiOeS
25th May 2009, 02:43 PM
hello, i have a strange problem with TransparentBlt
I have a program writed on C++ and i need paint (in double buffer) the background image and a image with mask color (RGB(255,0,255) (Pink)) in each frame.
to paint i do this:
1º BitBlt: HDC with background image -> buffer HDC
2º TransparentBlt: HDC scene with transparent areas in pink color -> buffer HDC
3º BitBlt: Buffer HDC -> Display HDC
My applications its a custom today and it need to repaint very fast (http://forum.xda-developers.com/showthread.php?p=3831016) for nice animations but i have this problem:
If i attach my today in Settings/Today -> Today animations are slow
If i restart my device with today active -> Today animations are very fast!!! (so with BitBlt)
If i restart (i have fast animations) and i open Settings/Today and push OK buttom -> Today animations change to slow
If i change my code the line TransparentBlt for BitBlt the animations are fast always
Why with TransparentBlt the animations are fast when i do softreset only¿?¿?¿?¿?
I'm confused, can not understand why this happens...
I have a program writed on C++ and i need paint (in double buffer) the background image and a image with mask color (RGB(255,0,255) (Pink)) in each frame.
to paint i do this:
1º BitBlt: HDC with background image -> buffer HDC
2º TransparentBlt: HDC scene with transparent areas in pink color -> buffer HDC
3º BitBlt: Buffer HDC -> Display HDC
My applications its a custom today and it need to repaint very fast (http://forum.xda-developers.com/showthread.php?p=3831016) for nice animations but i have this problem:
If i attach my today in Settings/Today -> Today animations are slow
If i restart my device with today active -> Today animations are very fast!!! (so with BitBlt)
If i restart (i have fast animations) and i open Settings/Today and push OK buttom -> Today animations change to slow
If i change my code the line TransparentBlt for BitBlt the animations are fast always
Why with TransparentBlt the animations are fast when i do softreset only¿?¿?¿?¿?
I'm confused, can not understand why this happens...