MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / lcdAdjust

Method lcdAdjust

gui/qt/settings.cpp:719–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719void MainWindow::lcdAdjust() {
720 float scale = ui->scaleLCD->value() / 100.0;
721 bool skin = ui->checkSkin->isChecked();
722 ui->calcSkinTop->setVisible(skin);
723 float w, h;
724 w = LCD_WIDTH * scale;
725 h = LCD_HEIGHT * scale;
726 ui->lcd->setFixedSize(w, h);
727 ui->lcd->move(skin ? 60 * scale : 0, skin ? 78 * scale : 0);
728 if (skin) {
729 w = 440 * scale;
730 h = 351 * scale;
731 }
732 ui->calcSkinTop->resize(w, h);
733 ui->screenWidget->setFixedSize(w, h);
734}
735
736void MainWindow::setLcdScale(int scale) {
737 int roundedScale = round(scale / 10.0) * 10;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected