p5py / p5

p5 is a Python package based on the core ideas of Processing.
https://p5.readthedocs.io
GNU General Public License v3.0
734 stars 120 forks source link

Sketch does not cover windows on retina display #131

Closed swirly closed 2 years ago

swirly commented 5 years ago

On a retina display, the skecth is only covering a quarter of the window. This is a reopening of #9 since the supposed fix does not seem to work

In order to reproduce, use a retina display and just launch a script. It should cover the entire windows, it does not

Here is a simple screenshot

Capture d’écran 2019-10-02 à 12 41 21

System information:

jeremydouglass commented 5 years ago

In order to run at double density with a retina display, it seems like (untested) you need to set

builtins.pixel_x_density = 2
builtins.pixel_y_density = 2

This would be the equivalent of displayDensity()

Did you try setting these manually? Auto-detection would be better, but the first question is whether density is working at all....

swirly commented 5 years ago

Thank you for your investigation

just tried this now

from p5 import *
from random import random, randrange
import builtins

builtins.pixel_x_density = 2
builtins.pixel_y_density = 2

Does not solve anything. Tried to use 1 or 4. The behaviour does not change. Density seems not to work

swirly commented 4 years ago

Any progress on this issue ?

pikeas commented 3 years ago

I'm on a Retina MBP and can confirm that this appears to be working correctly with p5 0.7.1.

ziyaointl commented 2 years ago

Closed since this is working in 0.7.1.