Changeset 115 for trunk/src/gui/image
- Timestamp:
- Aug 17, 2009, 7:06:32 AM (16 years ago)
- Location:
- trunk/src/gui/image
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/image/qnativeimage.cpp
r2 r115 141 141 } 142 142 143 #elif defined(Q_WS_PM) 144 145 QNativeImage::QNativeImage(int width, int height, QImage::Format format, 146 bool isTextBuffer, QWidget *widget) 147 { 148 image = QImage(width, height, format); 149 } 150 151 QNativeImage::~QNativeImage() 152 { 153 } 154 155 QImage::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 } 143 162 144 163 #elif defined(Q_WS_X11) && !defined(QT_NO_MITSHM) -
trunk/src/gui/image/qnativeimage_p.h
r2 r115 56 56 #include "qimage.h" 57 57 58 #if def Q_WS_WIN58 #if defined(Q_WS_WIN) 59 59 #include "qt_windows.h" 60 60 … … 84 84 static QImage::Format systemFormat(); 85 85 86 #if def Q_WS_WIN86 #if defined(Q_WS_WIN) 87 87 HDC hdc; 88 88 HBITMAP bitmap;
Note:
See TracChangeset
for help on using the changeset viewer.