void LBGraphics::copyOffsetAnimImageToScreen(uint16 image, int left, int top) { MohawkSurface *mhkSurface = findImage(image); left -= mhkSurface->getOffsetX(); top -= mhkSurface->getOffsetY(); GraphicsManager::copyAnimImageToScreen(image, left, top); }
bool LBGraphics::imageIsTransparentAt(uint16 image, bool useOffsets, int x, int y) { MohawkSurface *mhkSurface = findImage(image); if (useOffsets) { x += mhkSurface->getOffsetX(); y += mhkSurface->getOffsetY(); } if (x < 0 || y < 0) return true; Graphics::Surface *surface = mhkSurface->getSurface(); if (x >= surface->w || y >= surface->h) return true; return *(byte *)surface->getBasePtr(x, y) == 0; }