コード例 #1
0
/**
 * Resize the buffer size (either normal or fullscreen)
 */
void ChameleonMScreen::setBufferSize(BufferSize newSize)
{    
       if (newSize == fullScreenSize) {
           qpixmap.resize(getDisplayFullWidth(), getDisplayFullHeight());
       } else {
           qpixmap.resize(getDisplayWidth(), getDisplayHeight());
       }

}
コード例 #2
0
ファイル: lfjport_qte_mscreen.cpp プロジェクト: sfsy1989/j2me
/**
 * Resize the buffer size (either normal or fullscreen)
 */
void ChameleonMScreen::setBufferSize(BufferSize newSize)
{    
    if (newSize == fullScreenSize) {
        if (gc->isActive()) {
            gc->end();
        }
        qpixmap.resize(getDisplayFullWidth(), getDisplayFullHeight());
    } else {
        qpixmap.resize(getDisplayWidth(), getDisplayHeight());
    }
    
    // Whether current Displayable won't repaint the entire screen on
    // resize event, the artefacts from the old screen content can appear.
    // That's why the buffer content is not preserved.
    qpixmap.fill(Qt::black);
}