Exemplo n.º 1
0
static void getDisplayInfo(DisplayInfo& info)
{
    IDisplay* display = reinterpret_cast<AEEApplet*>(GETAPPINSTANCE())->m_pIDisplay;
    IBitmap* bitmap = IDisplay_GetDestination(display);
    ASSERT(bitmap);

    AEEBitmapInfo bitmapInfo;
    IBitmap_GetInfo(bitmap, &bitmapInfo, sizeof(AEEBitmapInfo));

    info.width  = bitmapInfo.cx;
    info.height = bitmapInfo.cy;
    info.depth  = bitmapInfo.nDepth;

    IBitmap_Release(bitmap);
}
Exemplo n.º 2
0
template <> void freeOwnedPtrBrew<IBitmap>(IBitmap* ptr)
{
    if (ptr)
        IBitmap_Release(ptr);
}
Exemplo n.º 3
0
void deleteOwnedPtr(IBitmap* ptr)
{
    if (ptr)
        IBitmap_Release(ptr);
}