mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Fix eyedropper when zoom < 100%
Without this patch it was returning always the mask color (alpha=0%).
This commit is contained in:
parent
7c26a88813
commit
706590df05
@ -36,9 +36,7 @@ color_t get_sprite_pixel(const Sprite* sprite,
|
||||
render.setProjection(proj);
|
||||
render.renderSprite(
|
||||
image.get(), sprite, frame,
|
||||
gfx::ClipF(0, 0,
|
||||
proj.applyX(x), proj.applyY(y),
|
||||
proj.applyX(1), proj.applyY(1)));
|
||||
gfx::ClipF(0, 0, proj.applyX(x), proj.applyY(y), 1, 1));
|
||||
|
||||
color = get_pixel(image.get(), 0, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user