1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-06-11 17:29:29 +00:00

Add GetPixelIndex() to VisBitmap8

This commit is contained in:
Andy McFadden 2021-11-17 21:37:41 -08:00
parent 5a400ab738
commit cf4086ae26

View File

@ -55,13 +55,15 @@ namespace PluginCommon {
mNextColorIdx = 0;
}
// TODO: add GetPixelIndex, which returns the index we passed into SetPixelIndex
public int GetPixel(int x, int y) {
byte pix = mData[x + y * Width];
return mPalette[pix];
}
public byte GetPixelIndex(int x, int y) {
return mData[x + y * Width];
}
/// <summary>
/// Sets the color for a single pixel.
/// </summary>