pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.47k stars 273 forks source link

Canvas appears at bottom right of screen when viewed from a camera layer #1692

Closed LavenderSnek closed 1 year ago

LavenderSnek commented 2 years ago

Issue Summary

I compiled the latest version recently and ran into an issue where the canvas shows up in the corner of the screen when the camera layer is selected.

It seems to be an issue with devicePixelRatioF() always returning 2 on retina displays, removing that seemed to fix it for me.

It looks similar to #1685 but it's the canvas instead of the overlays in my case.

relevant code

Actual Results

The canvas appears at the bottom right corned of the viewport when the camera layer is selected.

Expected Results

Camera should appear in the center of the screen when a camera layer is selected.

Video or Image Reference

image

Steps to reproduce

Open a pencil2d with any file or a new file and select the camera layer. Make sure no external displays are connected.

System Information

MrStevns commented 1 year ago

Closed as it's been fixed in latest nightly build