PocketMatrix forums

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

How to implement DisplayDevice::Update(Rect )?

Dear friends, pls guide me how to update a part of screen.
if (m_backSurface->m_buffer.get() != m_GAPIBuffer)
{
//todo: use update rect
(*m_blitFunction)( m_GAPIBuffer, m_backSurface->m_buffer.get() );
}
Why I can't go to (*m_blitFunction)( m_GAPIBuffer, m_backSurface->m_buffer.get() ); line in debug mode?
(m_backSurface->m_buffer.get() != m_GAPIBuffer) always returns false, but screen is updated in my sample app?
Thanks in advance
Could an administrator please move this to the GapiDraw forum?

-John
Presto wrote:
Could an administrator please move this to the GapiDraw forum?


Why should it be? This is code in PocketFrog...
My mistake. :oops: I guess I haven't studied PF enough yet.
This is just a shot in the dark, but since no one else has responded...

m_backSurface->m_buffer.get() != m_GAPIBuffer
is false because the device you're debugging on isn't using a GAPI buffer...

So, if it's not using a GAPI buffer... someone else care to finish?