PocketMatrix forums

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

direct drawing

hi,
i have a menubar in the backbuffer and flip it to display at the beginning of my programm.then i paint directly to my display(always paint one point per programm-loop) .ok my problem is that if i turn off and on my PDA my menubar disappears.i know my failure, because i have to do:
"if (m_display.Flip() == GDERR_BACKBUFFERLOST)
m_display.GetBackBuffer(&m_backbuffer);"
in my loop. but then its a problem to my direct painting, because if i do this i can´t see my direct drawings anymore(only one point per loop and even this is very difficult).
please help
peter
hi johan!

if i use the mfc-sample without
Code:
if (m_display.Flip() == GDERR_BACKBUFFERLOST)
m_display.GetBackBuffer(&m_backbuffer);
in my callback i lose my window when turning off-on my ipaq. otherwise if i use it i can´t see my "direct display drawings" because the
m_display.Flip() clears this after each callback.

please please help.
thanks
is it onlay possible to recognize the "backbufferlost" with the m_display.Flip(), like in the mfc-sample. if yes, direct drawing is not
possible i think!!