summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqbitmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqbitmap.cpp')
-rw-r--r--src/kernel/tqbitmap.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kernel/tqbitmap.cpp b/src/kernel/tqbitmap.cpp
index c23116d0e..0417844f1 100644
--- a/src/kernel/tqbitmap.cpp
+++ b/src/kernel/tqbitmap.cpp
@@ -88,14 +88,14 @@
TQBitmap::TQBitmap()
{
- data->bitmap = TRUE;
+ data->bitmap = true;
}
/*!
Constructs a bitmap with width \a w and height \a h.
- The contents of the bitmap is uninitialized if \a clear is FALSE;
+ The contents of the bitmap is uninitialized if \a clear is false;
otherwise it is filled with pixel value 0 (the TQColor \c
TQt::color0).
@@ -111,7 +111,7 @@ TQBitmap::TQBitmap( int w, int h, bool clear,
TQPixmap::Optimization optimization )
: TQPixmap( w, h, 1, optimization )
{
- data->bitmap = TRUE;
+ data->bitmap = true;
if ( clear )
fill( TQt::color0 );
}
@@ -122,7 +122,7 @@ TQBitmap::TQBitmap( int w, int h, bool clear,
Constructs a bitmap with the size \a size.
- The contents of the bitmap is uninitialized if \a clear is FALSE;
+ The contents of the bitmap is uninitialized if \a clear is false;
otherwise it is filled with pixel value 0 (the TQColor \c
TQt::color0).
@@ -136,7 +136,7 @@ TQBitmap::TQBitmap( const TQSize &size, bool clear,
TQPixmap::Optimization optimization )
: TQPixmap( size, 1, optimization )
{
- data->bitmap = TRUE;
+ data->bitmap = true;
if ( clear )
fill( TQt::color0 );
}
@@ -146,21 +146,21 @@ TQBitmap::TQBitmap( const TQSize &size, bool clear,
Constructs a bitmap with width \a w and height \a h and sets the
contents to \a bits.
- The \a isXbitmap flag should be TRUE if \a bits was generated by
+ The \a isXbitmap flag should be true if \a bits was generated by
the X11 bitmap program. The X bitmap bit order is little endian.
The TQImage documentation discusses bit order of monochrome images.
Example (creates an arrow bitmap):
\code
uchar arrow_bits[] = { 0x3f, 0x1f, 0x0f, 0x1f, 0x3b, 0x71, 0xe0, 0xc0 };
- TQBitmap bm( 8, 8, arrow_bits, TRUE );
+ TQBitmap bm( 8, 8, arrow_bits, true );
\endcode
*/
TQBitmap::TQBitmap( int w, int h, const uchar *bits, bool isXbitmap )
: TQPixmap( w, h, bits, isXbitmap )
{
- data->bitmap = TRUE;
+ data->bitmap = true;
}
@@ -170,7 +170,7 @@ TQBitmap::TQBitmap( int w, int h, const uchar *bits, bool isXbitmap )
Constructs a bitmap with the size \a size and sets the contents to
\a bits.
- The \a isXbitmap flag should be TRUE if \a bits was generated by
+ The \a isXbitmap flag should be true if \a bits was generated by
the X11 bitmap program. The X bitmap bit order is little endian.
The TQImage documentation discusses bit order of monochrome images.
*/
@@ -178,7 +178,7 @@ TQBitmap::TQBitmap( int w, int h, const uchar *bits, bool isXbitmap )
TQBitmap::TQBitmap( const TQSize &size, const uchar *bits, bool isXbitmap )
: TQPixmap( size.width(), size.height(), bits, isXbitmap )
{
- data->bitmap = TRUE;
+ data->bitmap = true;
}
@@ -208,7 +208,7 @@ TQBitmap::TQBitmap( const TQBitmap &bitmap )
TQBitmap::TQBitmap( const TQString& fileName, const char *format )
: TQPixmap() // Will set bitmap to null bitmap, explicit call for clarity
{
- data->bitmap = TRUE;
+ data->bitmap = true;
load( fileName, format, Mono );
}
#endif
@@ -241,13 +241,13 @@ TQBitmap &TQBitmap::operator=( const TQBitmap &bitmap )
TQBitmap &TQBitmap::operator=( const TQPixmap &pixmap )
{
if ( pixmap.isNull() ) { // a null pixmap
- TQBitmap bm( 0, 0, FALSE, pixmap.optimization() );
+ TQBitmap bm( 0, 0, false, pixmap.optimization() );
TQBitmap::operator=(bm);
} else if ( pixmap.depth() == 1 ) { // 1-bit pixmap
if ( pixmap.isTQBitmap() ) { // another TQBitmap
TQPixmap::operator=(pixmap); // shallow assignment
} else { // not a TQBitmap, but 1-bit
- TQBitmap bm( pixmap.size(), FALSE, pixmap.optimization() );
+ TQBitmap bm( pixmap.size(), false, pixmap.optimization() );
bitBlt( &bm, 0,0, &pixmap, 0,0,pixmap.width(),pixmap.height() );
TQBitmap::operator=(bm);
}
@@ -294,7 +294,7 @@ TQBitmap TQBitmap::xForm( const TQWMatrix &matrix ) const
// Here we fake the pixmap to think it's a TQBitmap. With this trick,
// the TQBitmap::operator=(const TQPixmap&) will just refer the
// pm.data and we do not need to perform a bitBlt.
- pm.data->bitmap = TRUE;
+ pm.data->bitmap = true;
bm = pm;
return bm;
}