Fix eyedropper when zoom < 100%

Without this patch it was returning always the mask color (alpha=0%).
This commit is contained in:
David Capello 2019-06-04 16:47:57 -03:00
parent 7c26a88813
commit 706590df05

View File

@ -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);
}