summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqpixmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ntqpixmap.h')
-rw-r--r--src/kernel/ntqpixmap.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kernel/ntqpixmap.h b/src/kernel/ntqpixmap.h
index 94d923626..e6e5e529b 100644
--- a/src/kernel/ntqpixmap.h
+++ b/src/kernel/ntqpixmap.h
@@ -51,7 +51,7 @@
class TQGfx;
class TQPixmapPrivate;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
// Internal pixmap memory optimization class for Windows 9x
class TQMultiCellPixmap;
#endif
@@ -139,7 +139,7 @@ public:
bool save( TQIODevice* device, const char* format, int quality = -1 ) const;
#endif
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
HBITMAP hbm() const;
#endif
@@ -154,7 +154,7 @@ public:
bool isTQBitmap() const;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
// These functions are internal and used by Windows 9x only
bool isMultiCellPixmap() const;
HDC multiCellHandle() const;
@@ -164,13 +164,13 @@ public:
void freeCell( bool = FALSE );
#endif
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
virtual TQGfx * graphicsContext(bool clip_children=TRUE) const;
virtual unsigned char * scanLine(int) const;
virtual int bytesPerLine() const;
TQRgb * clut() const;
int numCols() const;
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
static int x11SetDefaultScreen( int screen );
void x11SetScreen( int screen );
#endif
@@ -183,7 +183,7 @@ protected:
TQPixmap( int w, int h, const uchar *data, bool isXbitmap );
int metric( int ) const;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
struct TQMCPI { // mem optim for win9x
TQMultiCellPixmap *mcp;
int offset;
@@ -196,12 +196,12 @@ protected:
uint uninit : 1;
uint bitmap : 1;
uint selfmask : 1;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
uint mcp : 1;
#endif
int ser_no;
TQBitmap *mask;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
TQPixmap *maskpm;
union {
HBITMAP hbm; // if mcp == FALSE
@@ -211,14 +211,14 @@ protected:
#ifdef Q_OS_TEMP
uchar* ppvBits; // Pointer to DIBSection bits
#endif
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
void *ximage;
void *maskgc;
TQPixmap *alphapm;
-#elif defined(Q_WS_MAC)
+#elif defined(TQ_WS_MAC)
ColorTable *clut;
TQPixmap *alphapm;
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
int id; // ### should use TQPaintDevice::hd, since it is there
TQRgb * clut;
int numcols;
@@ -227,7 +227,7 @@ protected:
bool hasAlpha;
#endif
Optimization optim;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
HBITMAP old_hbm;
#endif
} *data;
@@ -239,7 +239,7 @@ private:
void init( int, int, int, bool, Optimization );
void deref();
TQPixmap copy( bool ignoreMask = FALSE ) const;
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
void initAlphaPixmap( uchar *bytes, int length, struct tagBITMAPINFO *bmi );
void convertToAlphaPixmap( bool initAlpha=TRUE );
static void bitBltAlphaPixmap( TQPixmap *dst, int dx, int dy,
@@ -257,7 +257,7 @@ private:
const TQPixmap *src, int sx, int sy,
int sw, int sh );
-#if defined(Q_WS_MAC)
+#if defined(TQ_WS_MAC)
friend void unclippedScaledBitBlt(TQPaintDevice *, int, int, int, int,
const TQPaintDevice *, int, int, int, int,
TQt::RasterOp, bool, bool);
@@ -295,7 +295,7 @@ inline bool TQPixmap::selfMask() const
return data->selfmask;
}
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
inline HBITMAP TQPixmap::hbm() const
{
return data->mcp ? 0 : data->hbm_or_mcpi.hbm;
@@ -317,7 +317,7 @@ inline bool TQPixmap::isTQBitmap() const
return data->bitmap;
}
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
inline bool TQPixmap::isMultiCellPixmap() const
{
return data->mcp;
@@ -341,7 +341,7 @@ TQ_EXPORT TQDataStream &operator>>( TQDataStream &, TQPixmap & );
#ifndef TQT_NO_PIXMAP_TRANSFORMATION
# define QT_XFORM_TYPE_MSBFIRST 0
# define QT_XFORM_TYPE_LSBFIRST 1
-# if defined(Q_WS_WIN)
+# if defined(TQ_WS_WIN)
# define QT_XFORM_TYPE_WINDOWSPIXMAP 2
# endif
bool qt_xForm_helper( const TQWMatrix&, int, int, int, uchar*, int, int, int, uchar*, int, int, int );