mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-23 13:10:04 +07:00
Expanded PaletteIndexedPixmap constructors to include arrays with specified lengths
This commit is contained in:
parent
ab379c7910
commit
fa3b2b72ea
@ -13,7 +13,11 @@ public class PaletteIndexedPixmap extends Pixmap {
|
||||
}
|
||||
|
||||
public PaletteIndexedPixmap(int width, int height, byte[] data) {
|
||||
this(width, height, data, data.length);
|
||||
}
|
||||
|
||||
public PaletteIndexedPixmap(int width, int height, byte[] data, int length) {
|
||||
this(width, height);
|
||||
BufferUtils.copy(data, 0, getPixels(), data.length);
|
||||
BufferUtils.copy(data, 0, getPixels(), length);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user