Fixed a bug in get_pixel not being const
This commit is contained in:
parent
8a03a29233
commit
7787700aca
2 changed files with 2 additions and 2 deletions
|
@ -1712,7 +1712,7 @@ void Image::unlock() {
|
|||
write_lock = PoolVector<uint8_t>::Write();
|
||||
}
|
||||
|
||||
Color Image::get_pixel(int p_x, int p_y) {
|
||||
Color Image::get_pixel(int p_x, int p_y) const {
|
||||
|
||||
uint8_t *ptr = write_lock.ptr();
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
|
|
@ -304,7 +304,7 @@ public:
|
|||
|
||||
DetectChannels get_detected_channels();
|
||||
|
||||
Color get_pixel(int p_x, int p_y);
|
||||
Color get_pixel(int p_x, int p_y) const;
|
||||
void put_pixel(int p_x, int p_y, const Color &p_color);
|
||||
|
||||
void copy_internals_from(const Ref<Image> &p_image) {
|
||||
|
|
Loading…
Reference in a new issue