Replies: 3 comments
-
Hiho. What exactly do you mean by "ask it to make 1000x1000 canvas"? Kha generally tries to use the actual pixels and all scaling for high dpi displays has to be done manually by the application using Display.pixelsPerInch. |
Beta Was this translation helpful? Give feedback.
-
If I say something like
As far as I can tell it should either not touch the size or make it double (not half) |
Beta Was this translation helpful? Give feedback.
-
Are you talking about html5 proper or about html5-debug (aka running things in electron)? Proper html5 shouldn't resize at all and ignore the width/height parameters. In html5-debug I remember the situation becoming weirdly complicated. |
Beta Was this translation helpful? Give feedback.
-
Hi
I'm very confused about the usage of devicePixelRatio in Kha (and in general about the suspicious lack of examples that don't have some silly fixed size). When I ask it to make 1000x1000 canvas, it makes instead 500x500 canvas. But that's not how the CSS property should be read, I think devicePixelRatio = 2 means that we need to draw 2 pixels to get the right idea, as opposed to half a pixel. So bitmaps are small because my device has a large resolution and double small because only every second pixel is drawn. What's the plan here? also seems to be hardcoded?
Beta Was this translation helpful? Give feedback.
All reactions