Fix QGLWidget::renderPixmap for raster engine on Mac
authorJiang Jiang <jiang.jiang@nokia.com>
Wed, 11 May 2011 14:56:24 +0000 (16:56 +0200)
committerQt Continuous Integration System <qt-info@nokia.com>
Wed, 25 May 2011 15:57:35 +0000 (17:57 +0200)
commit635af8d700087b24bd8c212b14cf644e0f71a6fc
tree6ba6d720c31bd73ed0eff08b90bdee647d95a5f0
parentffc19505914e774e067217f5d7149af032312bb7
Fix QGLWidget::renderPixmap for raster engine on Mac

The QPixmap buffer is backed by QRasterPixmapData instead of
QMacPixmapData for the raster engine, thus we have to update
qt_mac_pixmap_get_base() and qt_mac_pixmap_get_bytes_per_line(),
so that QGLWidget can locate the offscreen buffer from a QPixmap.

Reviewed-by: Fabien Freling
(cherry picked from commit c5846314dfd80e7f7f32ba737f1884dcccbbd80d)

Change-Id: I2414222f8a59e02c778177d52ad9a6e0ff68668d
Reviewed-on: http://codereview.qt.nokia.com/123
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/image/qpixmap_mac.cpp