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

Method getImage

gui/qt/lcdwidget.cpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125QImage 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
138void LCDWidget::mousePressEvent(QMouseEvent *e) {
139 if (e->button() == Qt::LeftButton && (control.ports[5] & 1 << 4)) {

Callers 3

screenshotMethod · 0.80
lcdCopyMethod · 0.80
ipcCliMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected