| 123 | } |
| 124 | |
| 125 | QImage LCDWidget::getImage() { |
| 126 | QImage image; |
| 127 | if ((control.ports[5] & 1 << 4) && (lcd.control & 1 << 11)) { |
| 128 | m_mutex.lock(); |
| 129 | image = m_renderedFrame.copy(); |
| 130 | m_mutex.unlock(); |
| 131 | } else { |
| 132 | image = QImage(LCD_WIDTH, LCD_HEIGHT, QImage::Format_RGB32); |
| 133 | image.fill(Qt::black); |
| 134 | } |
| 135 | return image; |
| 136 | } |
| 137 | |
| 138 | void LCDWidget::mousePressEvent(QMouseEvent *e) { |
| 139 | if (e->button() == Qt::LeftButton && (control.ports[5] & 1 << 4)) { |
no outgoing calls
no test coverage detected