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({
178
178
// Manual painting
179
179
if (app .renderer .type === PIXI .RENDERER_TYPE .WEBGL ) {
180
180
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 ,
183
183
resolution: window .devicePixelRatio ,
184
184
})
185
185
mainRenderTexture .framebuffer .multisample = PIXI .MSAA_QUALITY .LOW
@@ -1332,7 +1332,7 @@ export default defineComponent({
1332
1332
app .view .style .opacity = ' 0'
1333
1333
// @ts-expect-error PIXI type is missing queueResize
1334
1334
app .queueResize ()
1335
- mainRenderTexture ?.resize (app .view .width , app .view .height )
1335
+ mainRenderTexture ?.resize (app .view .width / window . devicePixelRatio , app .view .height / window . devicePixelRatio )
1336
1336
queueEventsUpdate ()
1337
1337
drawLayerBackgroundEffects ()
1338
1338
drawTimeCursor ()
You can’t perform that action at this time.
0 commit comments