lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
282 stars 27 forks source link

New layer makes drawing on previous layer look distorted #65

Closed duianto closed 3 years ago

duianto commented 3 years ago

Adding a new layer makes the drawing on the previous layer look distorted.

reproduction steps

expected

the previous layer should look unchanged

observed

the previous layer becomes distorted

new_layer_distorts_previous_layer

note

selecting a layer with a drawing, shows it correctly.

system

Luna Paint 0.5.1 VSCode 1.56.2 Windows 10 Version 2004

Tyriar commented 3 years ago

I spotted this as well, it actually only happens on my macbook, not my Windows machine. @duianto what type of graphics card do you have?

duianto commented 3 years ago

GeForce GTX 550 Ti

Tyriar commented 3 years ago

Curious that it doesn't happen on my Windows box, it even happens on my mac with really small images so it's not hitting memory limits. Will keep looking...

Tyriar commented 3 years ago

Actually managed to repro on my Windows machine, it's just a different/worse result on mac 🤔

Tyriar commented 3 years ago

Verified this is not due to VS Code's Electron 11->12 update

Tyriar commented 3 years ago

It only happens on images of a certain size, it happens on 800x600 but not 32x32

Tyriar commented 3 years ago

That was a challenge lol, the bug ended up being tiled textures which are only used for bigger images were using the wrong dimensions and being stretched. Thanks for reporting!