fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Scaling does not work on Java (LWJGL) platform #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using several nested group layers, each with some scaling options.
When running on a Java JVM (Mac OS X), the scaling does not work and the 
display is as there were no scaling at all.

I am using the latest trunk version of PlayN

Original issue reported on code.google.com by didier.p...@gmail.com on 15 Jul 2012 at 2:24

GoogleCodeExporter commented 9 years ago
I'll need to see some sort of small code snippet that demonstrates the bug. 
Scaling works in general (see the SwirlDemo in playn-samples/showcase for an 
example), so maybe you're doing something to trigger a bug, or you have an 
uncommon use case.

Original comment by m...@samskivert.com on 16 Jul 2012 at 1:33

GoogleCodeExporter commented 9 years ago
OK, I found the issue. I was computing the scale from the screen width and 
there is a difference in the implementation of the 
PlayN.graphics().screenWidth() between PlayN 1.2 and 1.4.

I fixed it in my app.

Thanks for your help.

  Didier

Original comment by didier.p...@gmail.com on 16 Jul 2012 at 8:45

GoogleCodeExporter commented 9 years ago

Original comment by m...@samskivert.com on 16 Jul 2012 at 8:54