Blit sample

Hi there,
I'm developing PocketPC2003 Platform. I find recently that some games don't work in my machine.
For example, Blit sample in PocketFrog 0.6.0 have problem in my machine. The sample starts very well. Items in the screen tremble very quickly same as other machine, but the program exits when I drag some item. So, I look up the source.
The error point is memcpy in Blit16Fast function.
---
memcpy( pGAPIBuffer->GetPixels(), pBackBuffer->GetPixels(),
pBackBuffer->GetHeight() * pBackBuffer->GetPitch() );
---
I don't know why? My machine use a fixed framebuffer. It means that it don't use multiple buffers.
when I replace some code in BlitSample::SytleMove, the crash dosn't come up.
== Replaced codes
// Rect limit( 0, 0, GetDisplay()->GetWidth() - image->GetWidth(), GetDisplay()->GetHeight() - image->GetHeight() );
Rect limit( 0, 0, 320 - image->GetWidth(), 240 - image->GetHeight() );
==
I checks returned values.
GetDisplay()->GetWidth() value : 320
GetDisplay()->GetHeight() value : 240
-------------------
If you have ideas, let me know..
I'm developing PocketPC2003 Platform. I find recently that some games don't work in my machine.
For example, Blit sample in PocketFrog 0.6.0 have problem in my machine. The sample starts very well. Items in the screen tremble very quickly same as other machine, but the program exits when I drag some item. So, I look up the source.
The error point is memcpy in Blit16Fast function.
---
memcpy( pGAPIBuffer->GetPixels(), pBackBuffer->GetPixels(),
pBackBuffer->GetHeight() * pBackBuffer->GetPitch() );
---
I don't know why? My machine use a fixed framebuffer. It means that it don't use multiple buffers.
when I replace some code in BlitSample::SytleMove, the crash dosn't come up.
== Replaced codes
// Rect limit( 0, 0, GetDisplay()->GetWidth() - image->GetWidth(), GetDisplay()->GetHeight() - image->GetHeight() );
Rect limit( 0, 0, 320 - image->GetWidth(), 240 - image->GetHeight() );
==
I checks returned values.
GetDisplay()->GetWidth() value : 320
GetDisplay()->GetHeight() value : 240
-------------------
If you have ideas, let me know..