VOXEL: palette::save is const now
parent
5a9e125874
commit
f48b2be7b3
|
@ -114,7 +114,7 @@ int Palette::getClosestMatch(const core::RGBA rgba, float *distance, int skip) c
|
|||
return getClosestMatch(core::Color::fromRGBA(rgba), distance, skip);
|
||||
}
|
||||
|
||||
bool Palette::save(const char *name) {
|
||||
bool Palette::save(const char *name) const {
|
||||
if (name == nullptr || name[0] == '\0') {
|
||||
if (_paletteFilename.empty()) {
|
||||
return false;
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
return colorCount;
|
||||
}
|
||||
bool load(const char *name);
|
||||
bool save(const char *name = nullptr);
|
||||
bool save(const char *name = nullptr) const;
|
||||
bool load(const uint8_t *rgbaBuf, size_t bufsize);
|
||||
|
||||
bool minecraft();
|
||||
|
|
Loading…
Reference in New Issue