This page was last modified 11:41, 13 November 2007.
KIJ000405 - Behavior of reference pixel methods on Series 40 3rd Edition devices
From Forum Nokia Wiki
Incorrect behavior of reference pixel methods on Series 40 3rd Edition devices
|
KIJ000405
|
Overview
| defineReferencePixel() and setRefPixelPosition() do not position the Sprite correctly.
|
Reported against
| Series 40 3rd Edition, Series 40 3rd Edition, FP1, and Series 40 3rd Edition, FP2 Nokia 6111, Nokia 6125, Nokia 6131, Nokia 6136, Nokia 6151, Nokia 6233, Nokia 6234, Nokia 6265, Nokia 6270, Nokia 6280, Nokia 7370, Nokia 5200, Nokia 6085, Nokia 6086 Nokia Series 40 3rd Edition, Feature Pack 1 emulator
|
Date identified
| September 21, 2006, updated November 13, 2007
|
Symptoms
| -
|
Detailed description
| The defineReferencePixel() and setRefPixelPosition() methods are used to position and transform the Sprite relative to a reference pixel. Initially the reference pixel is located in the upper left corner of the frame. The implementation on the above-mentioned devices does not operate correctly, which causes the Sprite to be placed in an incorrect location on the screen.
|
How to reproduce
| -
|
Solution
| Detect the phone model with SystemProperty("microedition.platform") and if the phone model matches one of the models above, use your own Sprite positioning function (by adding the refPixel coordinates to the Sprite coordinates).
|