(new QLabel("Extras", this))
->setGeometry(barX + barW * 7, barY, barW, barH);
}
+
+ if (strcmp(who, "Series 7") == 0) {
+ mFormat = QImage::Format_RGB444;
+ } else {
+ mFormat = QImage::Format_Grayscale8;
+ }
}
void PDAScreenWindow::updateScreen() {
uint8_t* lines[1024];
- QImage img(emu->getLCDWidth(), emu->getLCDHeight(),
- QImage::Format_Grayscale8);
+ QImage img(emu->getLCDWidth(), emu->getLCDHeight(), mFormat);
for (int y = 0; y < img.height(); y++)
lines[y] = img.scanLine(y);
emu->readLCDIntoBuffer(lines, false);