~arcachofo/simulide/1.1.0

« back to all changes in this revision

Viewing changes to src/microsim/cores/scripted/display.cpp

  • Committer: arcachofo
  • Date: 2024-10-12 10:14:58 UTC
  • Revision ID: arcachofo@simulide.com-20241012101458-4i01dm6j2sketsq0
Script Display: optimize Widget paint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
    m_background= 0;
21
21
    m_changed = false;
 
22
    m_embed = false;
22
23
 
23
24
    updtImageSize();
24
25
}
157
158
 
158
159
void Display::paintEvent( QPaintEvent* )
159
160
{
 
161
    if( m_embed ) return;
 
162
 
160
163
    QPainter p(this);
161
164
 
162
165
    for( uint x=0; x<m_width; x++ )