Use explicit test for image smoothing disabled
fix prettier
This commit is contained in:
+4
-1
@@ -331,7 +331,10 @@ export function render(
|
|||||||
context.save();
|
context.save();
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
|
|
||||||
if (isBrokenDiagonalRendering() || opt_contextOptions === IMAGE_SMOOTHING_DISABLED) {
|
if (
|
||||||
|
isBrokenDiagonalRendering() ||
|
||||||
|
opt_contextOptions === IMAGE_SMOOTHING_DISABLED
|
||||||
|
) {
|
||||||
// Make sure that everything is on pixel boundaries
|
// Make sure that everything is on pixel boundaries
|
||||||
const u0r = pixelRound(u0);
|
const u0r = pixelRound(u0);
|
||||||
const v0r = pixelRound(v0);
|
const v0r = pixelRound(v0);
|
||||||
|
|||||||
Reference in New Issue
Block a user