You can specify two swap modes: SWAP_DISCARD and SWAP_COPY. SWAP_NONE isn't a valid choice.
- Code: Select all
1 2 3 4 5 6 7 8
| /// The SwapEffect is used to specify how the display is updated from the /// backbuffer. enum SwapEffect { SWAP_NONE, ///< Direct access (no buffering). SWAP_DISCARD, ///< We don't care about the content of the backbuffer. SWAP_COPY ///< We want to keep the backbuffer content. };
|
| 8 lines; 1 keywds; 0 nums; 5 ops; 0 strs; 5 coms Syntactic Coloring v0.4 - Dan East |
By default, SWAP_DISCARD is being used:
- Code: Select all
1 2 3
| /// Construction DisplayParameters( Orientation orientation = ORIENTATION_NORMAL, SwapEffect swapEffect = SWAP_DISCARD )
|
| 3 lines; 0 keywds; 0 nums; 5 ops; 0 strs; 1 coms Syntactic Coloring v0.4 - Dan East |
If you don't want to have to update the whole screen, use SWAP_COPY. The 2215 operates in SWAP_DISCARD mode (that's what I meant, and not SWAP_FLIP).
Since PocketFrog uses the default SWAP_DISCARD mode, you need to update the whole screen. Or you can change the initialization of PocketHAL to use SWAP_COPY.