It is not happening for me. I’m emulating the pmmemtobutton.c code
on the PmMemCreateMC help page. And it works, except it is not
flickerless.
Basically some other proceedure is drawing like
PmMemStart(mc);
PmMemFlush(mc, &theImage);
PmMemStop(mc)
and then does
PtDamageExposed(, );
The actually draw routine does
PgDrawPhImagemx(&theCanvas.ul, &theImage, Pg_GHOST);
But it flickers.
Looking at the ShadowBox example widget I tried
surounding the
PtSuperClassDraw( PtBasic, widget, damage );
call with
PgColor_t color = basic->fill_color;
basic->fill_color = Pg_TRANSPARENT;
PtSuperClassDraw( PtBasic, widget, damage );
basic->fill_color = color;
but this didn’t help.
I’m using a raw Widget, the PhImage_t and the PmMemoryContext_t
is constructed at the raw Widget’s init-time.
What am I missing?
http://www.math.fsu.edu/~bellenot
bellenot math.fsu.edu
+1.850.644.7189 (4053fax)