File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/app-frontend/src/features/timeline Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,8 @@ export default defineComponent({
178178 // Manual painting
179179 if (app .renderer .type === PIXI .RENDERER_TYPE .WEBGL ) {
180180 mainRenderTexture = PIXI .RenderTexture .create ({
181- width: app .view .width ,
182- height: app .view .height ,
181+ width: app .view .width / window . devicePixelRatio ,
182+ height: app .view .height / window . devicePixelRatio ,
183183 resolution: window .devicePixelRatio ,
184184 })
185185 mainRenderTexture .framebuffer .multisample = PIXI .MSAA_QUALITY .LOW
@@ -1332,7 +1332,7 @@ export default defineComponent({
13321332 app .view .style .opacity = ' 0'
13331333 // @ts-expect-error PIXI type is missing queueResize
13341334 app .queueResize ()
1335- mainRenderTexture ?.resize (app .view .width , app .view .height )
1335+ mainRenderTexture ?.resize (app .view .width / window . devicePixelRatio , app .view .height / window . devicePixelRatio )
13361336 queueEventsUpdate ()
13371337 drawLayerBackgroundEffects ()
13381338 drawTimeCursor ()
You can’t perform that action at this time.
0 commit comments