src/gui/image/qpixmap_x11.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 8 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
  1930         x11Data->h = h;
  1930         x11Data->h = h;
  1931         x11Data->is_null = (w <= 0 || h <= 0);
  1931         x11Data->is_null = (w <= 0 || h <= 0);
  1932         x11Data->hd = (Qt::HANDLE)XCreatePixmap(X11->display,
  1932         x11Data->hd = (Qt::HANDLE)XCreatePixmap(X11->display,
  1933                                                 RootWindow(X11->display, xinfo.screen()),
  1933                                                 RootWindow(X11->display, xinfo.screen()),
  1934                                                 w, h, d);
  1934                                                 w, h, d);
       
  1935         x11Data->setSerialNumber(++qt_pixmap_serial);
       
  1936 
  1935 #ifndef QT_NO_XRENDER
  1937 #ifndef QT_NO_XRENDER
  1936         if (X11->use_xrender) {
  1938         if (X11->use_xrender) {
  1937             XRenderPictFormat *format = x11Data->d == 32
  1939             XRenderPictFormat *format = x11Data->d == 32
  1938                                         ? XRenderFindStandardFormat(X11->display, PictStandardARGB32)
  1940                                         ? XRenderFindStandardFormat(X11->display, PictStandardARGB32)
  1939                                         : XRenderFindVisualFormat(X11->display, (Visual *) x11Data->xinfo.visual());
  1941                                         : XRenderFindVisualFormat(X11->display, (Visual *) x11Data->xinfo.visual());