diff -r dee5afe5301f -r 3f74d0d4af4c src/gui/image/qnativeimage.cpp --- a/src/gui/image/qnativeimage.cpp Mon Mar 15 12:43:09 2010 +0200 +++ b/src/gui/image/qnativeimage.cpp Thu Apr 08 14:19:33 2010 +0300 @@ -182,7 +182,7 @@ qWarning() << "Error while marking the shared memory segment to be destroyed"; ok = (xshminfo.shmaddr != (char*)-1); if (ok) - image = QImage((uchar *)xshmimg->data, width, height, systemFormat()); + image = QImage((uchar *)xshmimg->data, width, height, format); } xshminfo.readOnly = false; if (ok)