forked from ppfun/pixelplanet
aham
This commit is contained in:
parent
0817964dfc
commit
d2e2656c26
|
@ -135,7 +135,7 @@ export function renderOverlay(
|
||||||
const context = $canvas.getContext('2d');
|
const context = $canvas.getContext('2d');
|
||||||
if (!context) return;
|
if (!context) return;
|
||||||
|
|
||||||
context.imageSmoothingEnabled = true;
|
context.imageSmoothingEnabled = false;
|
||||||
context.save();
|
context.save();
|
||||||
context.scale(offscreenScale, offscreenScale);
|
context.scale(offscreenScale, offscreenScale);
|
||||||
context.globalAlpha = state.templates.oOpacity / 100;
|
context.globalAlpha = state.templates.oOpacity / 100;
|
||||||
|
@ -177,7 +177,7 @@ export function renderSmallPOverlay(
|
||||||
if (!context) return;
|
if (!context) return;
|
||||||
|
|
||||||
const relScale = scale / 3;
|
const relScale = scale / 3;
|
||||||
context.imageSmoothingEnabled = true;
|
context.imageSmoothingEnabled = false;
|
||||||
context.save();
|
context.save();
|
||||||
context.scale(relScale, relScale);
|
context.scale(relScale, relScale);
|
||||||
for (const template of templates) {
|
for (const template of templates) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user