src/gui/painting/qpaintengine_x11.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     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 **
  1987             QColormap cmap = QColormap::instance(d->scrn);
  1987             QColormap cmap = QColormap::instance(d->scrn);
  1988             XSetForeground(d->dpy, d->gc, cmap.pixel(d->cpen.color()));
  1988             XSetForeground(d->dpy, d->gc, cmap.pixel(d->cpen.color()));
  1989         }
  1989         }
  1990         XFillRectangle(d->dpy, d->hd, d->gc, x, y, sw, sh);
  1990         XFillRectangle(d->dpy, d->hd, d->gc, x, y, sw, sh);
  1991         restore_clip = true;
  1991         restore_clip = true;
       
  1992     } else if (mono_dst && !mono_src) {
       
  1993         QBitmap bitmap(pixmap);
       
  1994         XCopyArea(d->dpy, bitmap.handle(), d->hd, d->gc, sx, sy, sw, sh, x, y);
  1992     } else {
  1995     } else {
  1993         XCopyArea(d->dpy, pixmap.handle(), d->hd, d->gc, sx, sy, sw, sh, x, y);
  1996         XCopyArea(d->dpy, pixmap.handle(), d->hd, d->gc, sx, sy, sw, sh, x, y);
  1994     }
  1997     }
  1995 
  1998 
  1996     if (d->pdev->devType() == QInternal::Pixmap) {
  1999     if (d->pdev->devType() == QInternal::Pixmap) {