Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

I use IGRAPHICS_StretchBlt() to resize an image to a lesser size. However, the top 10 to 20 pixels of the image is not copied correctly and is all mushed. I also tried with other 8bit bitmaps. What can be the problem? Attached is the screenshot. Here's my code:

pRes= (byte*)ISHELL_LoadResData(m_pIShell, MOON_RES_FILE, IDB_GAME_LOGO, RESTYPE_IMAGE);
pData= pRes +*pRes;
pBuf= (byte*)MALLOC(sizeSnd);
MEMCPY(pBuf, pData, sizeSnd);

if (pIGraphics != NULL)
{
IGRAPHICS_StretchBlt(pIGraphics, 0, 0, di.cxScreen, di.cyScreen, pBuf, AEE_RO_TRANSPARENT);
IGRAPHICS_Update(pIGraphics);
FREE(pBuf);
IGRAPHICS_Release(pIGraphics);
pIGraphics = NULL;
ISHELL_FreeResData(m_pIShell, (void*)pRes);
}

Thank you.

Anybody know about this?
Thank you.

Anybody know about this?
Thank you.