Ignore:
Timestamp:
Aug 17, 2009, 7:06:32 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Added OS/2 support to QRasterWindowSurface and to QNativeImage (this gives us rendering of the widget contents in double-buffer mode).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/image/qnativeimage.cpp

    r2 r115  
    141141}
    142142
     143#elif defined(Q_WS_PM)
     144
     145QNativeImage::QNativeImage(int width, int height, QImage::Format format,
     146                           bool isTextBuffer, QWidget *widget)
     147{
     148    image = QImage(width, height, format);
     149}
     150
     151QNativeImage::~QNativeImage()
     152{
     153}
     154
     155QImage::Format QNativeImage::systemFormat()
     156{
     157    // @todo support 8-bit indexed colors?
     158//  if (QColormap::instance().depth() == 16)
     159//      return QImage::Format_RGB16;
     160    return QImage::Format_RGB32;
     161}
    143162
    144163#elif defined(Q_WS_X11) && !defined(QT_NO_MITSHM)
Note: See TracChangeset for help on using the changeset viewer.