mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-04 08:28:41 +00:00
SCI32: Remove getColorAtCoordinate()
The only calling code for this was removed in commit 3f2469c33e
This commit is contained in:
parent
bd81da1a6a
commit
75527e3df5
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user