mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-10 12:44:53 +00:00
Fix rendering artifacts when Apply Zoom is disabled and bg grid isn't aligned with pixels (fix #1349)
This commit is contained in:
parent
0a68c4626d
commit
95da8a2441
@ -1102,9 +1102,12 @@ CompositeImageFunc Render::getImageComposition(
|
|||||||
// True if we need blending pixel by pixel. If this is false we can
|
// True if we need blending pixel by pixel. If this is false we can
|
||||||
// blend src+dst one time and repeat the resulting color in dst
|
// blend src+dst one time and repeat the resulting color in dst
|
||||||
// image n-times (where n is the zoom scale).
|
// image n-times (where n is the zoom scale).
|
||||||
|
double intpart;
|
||||||
const bool finegrain =
|
const bool finegrain =
|
||||||
(!m_bgZoom && (m_bgCheckedSize.w < m_proj.applyX(1) ||
|
(!m_bgZoom && (m_bgCheckedSize.w < m_proj.applyX(1) ||
|
||||||
m_bgCheckedSize.h < m_proj.applyY(1))) ||
|
m_bgCheckedSize.h < m_proj.applyY(1) ||
|
||||||
|
std::modf(double(m_bgCheckedSize.w) / m_proj.applyX(1.0), &intpart) != 0.0 ||
|
||||||
|
std::modf(double(m_bgCheckedSize.h) / m_proj.applyY(1.0), &intpart) != 0.0)) ||
|
||||||
(layer &&
|
(layer &&
|
||||||
layer->isGroup() &&
|
layer->isGroup() &&
|
||||||
has_visible_reference_layers(static_cast<const LayerGroup*>(layer)));
|
has_visible_reference_layers(static_cast<const LayerGroup*>(layer)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user