PocketMatrix forums

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

mfc sample

hi!
i use the callback-function like in the mfc-sample, but without doing m_display.Flip() everytime if m_bfirstGfxUpdate = FALSE. now i made another thread where i want to do direct drawing to my display.
- works perfect.
now the problem: 1.) if i turn off/on my ipaq i lose my display, because i have no m_display.Flip() in my callback anymore.
2.) otherwise,if i use m_display.Flip() i terminate the first problem,but direct drawing is interrupted with each flip.

so what can i do
maybe someone can give me a hint.
thanks a lot
ITT
The simplest and universal method to determine if the device has been powered off is to check the length of each frame. If you have a frame that is more than a second or two long then the device was probably powered off.

Dan East
thanks a lot