| 215 | } |
| 216 | |
| 217 | void LCDWidget::disableBlend() { |
| 218 | if (m_currFrame == &m_blendedFrame) { |
| 219 | m_mutex.lock(); |
| 220 | m_currFrame = &m_renderedFrame; |
| 221 | m_mutex.unlock(); |
| 222 | static QMetaMethod updateMethod = staticMetaObject.method(staticMetaObject.indexOfSlot("update()")); |
| 223 | updateMethod.invoke(this); |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | // called by the emu thread to draw the lcd |
| 228 | bool LCDWidget::draw() { |