mirror of
https://github.com/meowarex/TidaLuna-Plugins.git
synced 2026-08-27 14:57:44 +10:00
Hotfix + Re add the bug immediatley <3
This commit is contained in:
@@ -164,7 +164,11 @@ export class KawarpLayer {
|
||||
const dpr = getDpr();
|
||||
const rect = this.host.getBoundingClientRect();
|
||||
const width = Math.max(1, Math.round(rect.width * dpr));
|
||||
const height = Math.max(1, Math.round(rect.height * dpr));
|
||||
// Aurora: render a single row of pixels and let CSS stretch it down the whole canvas (makes bands of color)
|
||||
const height =
|
||||
settings.backdropStyle === 1
|
||||
? 1
|
||||
: Math.max(1, Math.round(rect.height * dpr));
|
||||
if (this.canvas.width === width && this.canvas.height === height) return;
|
||||
this.canvas.width = width;
|
||||
this.canvas.height = height;
|
||||
|
||||
Reference in New Issue
Block a user