Changeset 115 for trunk/src/gui/image


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).

Location:
trunk/src/gui/image
Files:
2 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)
  • trunk/src/gui/image/qnativeimage_p.h

    r2 r115  
    5656#include "qimage.h"
    5757
    58 #ifdef Q_WS_WIN
     58#if defined(Q_WS_WIN)
    5959#include "qt_windows.h"
    6060
     
    8484    static QImage::Format systemFormat();
    8585
    86 #ifdef Q_WS_WIN
     86#if defined(Q_WS_WIN)
    8787    HDC hdc;
    8888    HBITMAP bitmap;
Note: See TracChangeset for help on using the changeset viewer.