QNX RTOS v4 Knowledge Base
     
    
  
QNX RTOS v4 Knowledge Base
  
    
      
        
          
            | Title  | 
            PgDrawImagemx not updating screen | 
           
          
            | Ref. No.  | 
            QNX.000009918 | 
           
        
          
            | Category(ies)  | 
            Development | 
           
          
            | Issue  | 
            We are receiving and calling PgDrawImagemx() about every 200ms, but the screen does not always update. If we do nothing, it updates to a new image about once every five or six seconds. If we damage a corner with PtDamageExtent, the image updates every second. If we damage the whole image size (336x210 pixels on a 1024x768 screen), the damaged extent for the next image clears the image about the time it gets updated, and we see very little.
  Is there a way to get it to redraw each image every single time?
  | 
           
          
            | Solution  | 
            There is a way to redraw each image by doing a PgFlush() after the PgDrawImagemx(). It will cause an immediate flush of the graphics buffer.
  | 
           
         
       |