//! [0] bool DBScreen::initDevice() { if (!QLinuxFbScreen::initDevice()) return false; QScreenCursor::initSoftwareCursor(); image = new QImage(deviceWidth(), deviceHeight(), pixelFormat()); painter = new QPainter(image); return true; }
/*! \reimp */ QRegion QTransformedScreen::region() const { QRegion deviceRegion = QProxyScreen::region(); return mapFromDevice(deviceRegion, QSize(deviceWidth(), deviceHeight())); }