Categories: Known Issue | Symbian C++ | Graphics | S60 3rd Edition | S60 3rd Edition, Feature Pack 1
This page was last modified 05:36, 30 August 2007.
KIS000671- Accessing display memory with UserSvr::ScreenInfo() is deprecated from S60 3rd Edition onwards
From Forum Nokia Wiki
| Accessing display memory with UserSvr::ScreenInfo() is deprecated from S60 3rd Edition onwards | KIS000671 | |
| Overview | UserSvr::ScreenInfo() provides an address to the LCD display frame buffer. However, using this method of drawing directly to the screen does not work properly on S60 3rd Edition devices, and is considered as deprecated. | |
| Category | Symbian C++ | |
| Subcategory | Graphics | |
| Reported against | S60 3rd Edition S60 3rd Edition, FP1 | |
| Date identified | June 4, 2007 | |
| Symptoms | - | |
| Detailed description | The address TScreenInfoV01::iScreenAddress, obtained by calling the UserSvr::ScreenInfo() function, can be used for drawing directly to the frame buffer of a display. After modifying the frame buffer, the display still needs to be forced to update itself. Prior to S60 3rd Edition, this could be done by generating a redraw event: TRawEvent redraw; redraw.Set( TRawEvent::ERedraw ); UserSvr::AddEvent( redraw ); On S60 3rd Edition devices this does not have any immediate effect; the screen is updated only after notifying the screen device about the out of date region(s). | |
| How to reproduce | - | |
| Solution | Instead of retrieving the frame buffer address with UserSvr::ScreenInfo(), developers should start using CDirectScreenBitmap class for direct screen access. For more information, see the document S60 Platform: Scalable Screen-Drawing How-To. As a workaround solution, it is still possible to use the old drawing method and force the screen to update itself by specifying the out of date region with void CFbsScreenDevice::Update( const TRegion &aRegion ); |
|
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Symbian 3rd Warm Reset (question for experts) | Svat_ | General Symbian C++ | 15 | 2007-11-14 08:42 |
| Simulating key presses in S60: | saurabh2801 | General Symbian C++ | 18 | 2007-07-18 12:27 |
| memory leak | sandy_zeng | General Symbian C++ | 5 | 2007-08-08 09:46 |
| S60 3rd Edition MIDP 2.0 BackLight | sanket2612 | Mobile Java Media (Graphics & Sounds) | 9 | 2008-03-02 14:49 |
| problems installing two applications combined in one sis | Adriana_P | Symbian Signing, Certification and Security | 11 | 2007-10-12 13:01 |

