Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Debugging screenshot on MacOS #89
Screenshots triggered by MacOS fails to display colors in the masks, unless oversampling is set. The oversampling feature can be activated by using oversampling from the settings: Settings -> Display -> General -> 2x oversampling.
The first screenshot was produced from klayout itself with File -> Screenshot. Works as intended
The following three screenshots were taken from the OS. The first one shows a fully white screen, but what is actually happening is that where there should be color, it is transparent. Note that the layer icons on the right render fine if their lines are selected.
are you saying the screen shows the colors, while the screenhot (taken by MacOS) doesn't?
Is this some kind of offscreen rendering thing? I basically use QImage rendering. My theory is that although I am using RGB32 type (without alpha), the upper 8 bits of the 32bit pixel value might matter too. The are sometimes set to 0xff, but sometimes they aren't. On the platforms I know these bits are
I have set up a branch "bug_89" where I have tried a patch to force the upper bits to ones: 8bec896
Maybe you can try this.