src/gui/image/qnativeimage.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
--- 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)