第一次使用 Feathers 一定會遇到的問題:手機上看起來正常,但在桌面上看起來超小..
http://forum.starling-framework.org/topic/xscreendpi-and-web-applications-without-air
You should also override the screenPixelWidth and screenPixelHeight values. These will will be combined with the dpi value to determine if it's a phone or tablet.
As an example, the following code simulates an iPhone Retina (and will result in a scale value of 1.0):
DeviceCapabilities.dpi = 326;
DeviceCapabilities.screenPixelWidth = 960;
DeviceCapabilities.screenPixelHeight = 640;
No comments:
Post a Comment