Is it possible to know how much memory a CGapiSurface class use at any moment, including it's surface, bitmap, data, etc?
Thanks!
Thanks!
A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.
long xSurfacePitch = (dwWidth+1) & 0xfffe; // words per line, dword-aligned
long ySurfacePitch = (dwHeight+1) & 0xfffe; // words per line, dword-aligned
m_surface.dwSize = xSurfacePitch*ySurfacePitch;
m_surface.pSurface = (WORD*) ::LocalAlloc(LMEM_FIXED, (m_surface.dwSize << 1));