summaryrefslogtreecommitdiffstats
path: root/core/io/image.h
diff options
context:
space:
mode:
authorkleonc <9283098+kleonc@users.noreply.github.com>2021-07-05 10:48:25 +0200
committerkleonc <9283098+kleonc@users.noreply.github.com>2021-11-26 22:23:04 +0100
commit4038bc0c369578c7483a5b1eae31e1ab4f35db34 (patch)
treef2d47bba23aab438e8d2991eb6c2d730766ec3f2 /core/io/image.h
parentb43281c8abf2d16d65f75817f0554a9b8ee044aa (diff)
downloadredot-engine-4038bc0c369578c7483a5b1eae31e1ab4f35db34.tar.gz
Fix `Image.blit_rect/blend_rect()` for negative `p_dest` point
Diffstat (limited to 'core/io/image.h')
-rw-r--r--core/io/image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/image.h b/core/io/image.h
index 9023463b08..cc626ec52c 100644
--- a/core/io/image.h
+++ b/core/io/image.h
@@ -190,6 +190,8 @@ private:
static int _get_dst_image_size(int p_width, int p_height, Format p_format, int &r_mipmaps, int p_mipmaps = -1, int *r_mm_width = nullptr, int *r_mm_height = nullptr);
bool _can_modify(Format p_format) const;
+ _FORCE_INLINE_ void _get_clipped_src_and_dest_rects(const Ref<Image> &p_src, const Rect2i &p_src_rect, const Point2i &p_dest, Rect2i &r_clipped_src_rect, Rect2i &r_clipped_dest_rect) const;
+
_FORCE_INLINE_ void _put_pixelb(int p_x, int p_y, uint32_t p_pixel_size, uint8_t *p_data, const uint8_t *p_pixel);
_FORCE_INLINE_ void _get_pixelb(int p_x, int p_y, uint32_t p_pixel_size, const uint8_t *p_data, uint8_t *p_pixel);