SCI32: Remove getColorAtCoordinate()

The only calling code for this was removed in commit 3f2469c33e
This commit is contained in:
Filippos Karapetis 2016-03-16 01:03:24 +02:00
parent bd81da1a6a
commit 75527e3df5
4 changed files with 0 additions and 17 deletions

View File

@ -102,8 +102,4 @@ int16 GfxCache::kernelViewGetCelCount(GuiResourceId viewId, int16 loopNo) {
return getView(viewId)->getCelCount(loopNo);
}
byte GfxCache::kernelViewGetColorAtCoordinate(GuiResourceId viewId, int16 loopNo, int16 celNo, int16 x, int16 y) {
return getView(viewId)->getColorAtCoordinate(loopNo, celNo, x, y);
}
} // End of namespace Sci

View File

@ -49,8 +49,6 @@ public:
int16 kernelViewGetLoopCount(GuiResourceId viewId);
int16 kernelViewGetCelCount(GuiResourceId viewId, int16 loopNo);
byte kernelViewGetColorAtCoordinate(GuiResourceId viewId, int16 loopNo, int16 celNo, int16 x, int16 y);
private:
void purgeFontCache();
void purgeViewCache();

View File

@ -975,13 +975,4 @@ void GfxView::adjustBackUpscaledCoordinates(int16 &y, int16 &x) {
_screen->adjustBackUpscaledCoordinates(y, x, _sci2ScaleRes);
}
byte GfxView::getColorAtCoordinate(int16 loopNo, int16 celNo, int16 x, int16 y) {
const CelInfo *celInfo = getCelInfo(loopNo, celNo);
const byte *bitmap = getBitmap(loopNo, celNo);
const int16 celWidth = celInfo->width;
bitmap += (celWidth * y);
return bitmap[x];
}
} // End of namespace Sci

View File

@ -85,8 +85,6 @@ public:
void adjustToUpscaledCoordinates(int16 &y, int16 &x);
void adjustBackUpscaledCoordinates(int16 &y, int16 &x);
byte getColorAtCoordinate(int16 loopNo, int16 celNo, int16 x, int16 y);
private:
void initData(GuiResourceId resourceId);
void unpackCel(int16 loopNo, int16 celNo, byte *outPtr, uint32 pixelCount);