Ticket #872: singleview.diff

File singleview.diff, 678 bytes (added by anonymous, 18 years ago)
  • singleview.cpp

     
    189189
    190190            if (m_pixmap->width() <= screenwidth &&
    191191                m_pixmap->height() <= screenheight)
    192                 bitBlt(&pix, screenwidth/2-m_pixmap->width()/2,
    193                        screenheight/2-m_pixmap->height()/2,
     192                bitBlt(&pix, (screenwidth-m_pixmap->width())/2,
     193                       (screenheight-m_pixmap->height())/2,
    194194                       m_pixmap,0,0,-1,-1,Qt::CopyROP);
    195195            else
    196196                bitBlt(&pix, 0, 0, m_pixmap, m_sx, m_sy,