summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqpaintdevice_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqpaintdevice_x11.cpp')
-rw-r--r--src/kernel/tqpaintdevice_x11.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/kernel/tqpaintdevice_x11.cpp b/src/kernel/tqpaintdevice_x11.cpp
index efeaf78fa..dd6251e2a 100644
--- a/src/kernel/tqpaintdevice_x11.cpp
+++ b/src/kernel/tqpaintdevice_x11.cpp
@@ -210,8 +210,8 @@ void TQPaintDevice::setX11Data( const TQPaintDeviceX11Data* d )
/*
\internal
- If \a def is FALSE, returns a deep copy of the x11Data, or 0 if x11Data is 0.
- If \a def is TRUE, makes a TQPaintDeviceX11Data struct filled with the default
+ If \a def is false, returns a deep copy of the x11Data, or 0 if x11Data is 0.
+ If \a def is true, makes a TQPaintDeviceX11Data struct filled with the default
values.
In either case the caller is responsible for deleting the returned
@@ -259,8 +259,8 @@ TQPaintDeviceX11Data* TQPaintDevice::getX11Data( bool def ) const
/*!
\fn bool TQPaintDevice::isExtDev() const
- Returns TRUE if the device is an external paint device; otherwise
- returns FALSE.
+ Returns true if the device is an external paint device; otherwise
+ returns false.
External paint devices cannot be bitBlt()'ed from. TQPicture and
TQPrinter are external paint devices.
@@ -373,9 +373,9 @@ TQt::HANDLE TQPaintDevice::x11RenderHandle() const
/*!
\fn bool TQPaintDevice::x11AppDefaultVisual ()
- Returns TRUE if the Visual used is the default for the default
+ Returns true if the Visual used is the default for the default
screen of the X display global to the application (X11 only);
- otherwise returns FALSE. Using this function is not portable.
+ otherwise returns false. Using this function is not portable.
*/
/*!
@@ -441,9 +441,9 @@ TQt::HANDLE TQPaintDevice::x11RenderHandle() const
\overload
\fn bool TQPaintDevice::x11AppDefaultVisual( int screen )
- Returns TRUE if the Visual used is the default for screen
+ Returns true if the Visual used is the default for screen
\a screen of the X display global to the application (X11 only);
- otherwise returns FALSE. Using this function is not portable.
+ otherwise returns false. Using this function is not portable.
*/
@@ -686,9 +686,9 @@ int TQPaintDevice::x11AppDpiY()
/*!
\fn bool TQPaintDevice::paintingActive() const
- Returns TRUE if the device is being painted, i.e. someone has
+ Returns true if the device is being painted, i.e. someone has
called TQPainter::begin() but not yet called TQPainter::end() for
- this device; otherwise returns FALSE.
+ this device; otherwise returns false.
\sa TQPainter::isActive()
*/
@@ -706,7 +706,7 @@ bool TQPaintDevice::cmd( int, TQPainter *, TQPDevCmdParam * )
#if defined(QT_CHECK_STATE)
tqWarning( "TQPaintDevice::cmd: Device has no command interface" );
#endif
- return FALSE;
+ return false;
}
/*!
@@ -758,7 +758,7 @@ int TQPaintDevice::fontInf( TQFont *, int ) const
// and the pixmap size doesn't exceed 128x128.
//
-static bool init_mask_gc = FALSE;
+static bool init_mask_gc = false;
static const int max_mask_gcs = 11; // suitable for hashing
struct mask_gc {
@@ -772,7 +772,7 @@ static mask_gc gc_vec[max_mask_gcs];
static void cleanup_mask_gc()
{
Display *dpy = TQPaintDevice::x11AppDisplay();
- init_mask_gc = FALSE;
+ init_mask_gc = false;
for ( int i=0; i<max_mask_gcs; i++ ) {
if ( gc_vec[i].gc )
XFreeGC( dpy, gc_vec[i].gc );
@@ -782,7 +782,7 @@ static void cleanup_mask_gc()
static GC cache_mask_gc( Display *dpy, Drawable hd, int mask_no, Pixmap mask )
{
if ( !init_mask_gc ) { // first time initialization
- init_mask_gc = TRUE;
+ init_mask_gc = true;
tqAddPostRoutine( cleanup_mask_gc );
for ( int i=0; i<max_mask_gcs; i++ )
gc_vec[i].gc = 0;
@@ -813,7 +813,7 @@ static GC cache_mask_gc( Display *dpy, Drawable hd, int mask_no, Pixmap mask )
The most common values for \a rop are CopyROP and XorROP; the \l
TQt::RasterOp documentation defines all the possible values.
- If \a ignoreMask is FALSE (the default) and \a src is a
+ If \a ignoreMask is false (the default) and \a src is a
masked TQPixmap, the entire blit is masked by \a{src}->mask().
If \a src, \a dst, \a sw or \a sh is 0, bitBlt() does nothing. If
@@ -867,22 +867,22 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
if ( dst->paintingActive() && dst->isExtDev() ) {
TQPixmap *pm; // output to picture/printer
- bool tmp_pm = TRUE;
+ bool tmp_pm = true;
if ( ts == TQInternal::Pixmap ) {
pm = (TQPixmap*)src;
if ( sx != 0 || sy != 0 ||
sw != pm->width() || sh != pm->height() || ignoreMask ) {
TQPixmap *tmp = new TQPixmap( sw, sh, pm->depth() );
- bitBlt( tmp, 0, 0, pm, sx, sy, sw, sh, TQt::CopyROP, TRUE );
+ bitBlt( tmp, 0, 0, pm, sx, sy, sw, sh, TQt::CopyROP, true );
if ( pm->mask() && !ignoreMask ) {
TQBitmap mask( sw, sh );
bitBlt( &mask, 0, 0, pm->mask(), sx, sy, sw, sh,
- TQt::CopyROP, TRUE );
+ TQt::CopyROP, true );
tmp->setMask( mask );
}
pm = tmp;
} else {
- tmp_pm = FALSE;
+ tmp_pm = false;
}
} else if ( ts == TQInternal::Widget ) {// bitBlt to temp pixmap
pm = new TQPixmap( sw, sh );
@@ -949,8 +949,8 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
bool mono_src;
bool mono_dst;
- bool include_inferiors = FALSE;
- bool graphics_exposure = FALSE;
+ bool include_inferiors = false;
+ bool graphics_exposure = false;
TQPixmap *src_pm;
TQBitmap *mask;
@@ -962,7 +962,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
mask = ignoreMask ? 0 : src_pm->data->mask;
} else {
src_pm = 0;
- mono_src = FALSE;
+ mono_src = false;
mask = 0;
include_inferiors = ((TQWidget*)src)->testWFlags(TQt::WPaintUnclipped);
graphics_exposure = td == TQInternal::Widget;
@@ -973,7 +973,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
mono_dst = ((TQPixmap*)dst)->depth() == 1;
((TQPixmap*)dst)->detach(); // changes shared pixmap
} else {
- mono_dst = FALSE;
+ mono_dst = false;
include_inferiors = include_inferiors ||
((TQWidget*)dst)->testWFlags(TQt::WPaintUnclipped);
}
@@ -999,7 +999,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
picmask |= CPSubwindowMode;
}
if (graphics_exposure) {
- pattr.graphics_exposures = TRUE;
+ pattr.graphics_exposures = true;
picmask |= CPGraphicsExposure;
}
if (picmask)
@@ -1009,7 +1009,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
sx, sy, sx, sy, dx, dy, sw, sh);
// restore attributes
pattr.subwindow_mode = ClipByChildren;
- pattr.graphics_exposures = FALSE;
+ pattr.graphics_exposures = false;
if (picmask)
XRenderChangePicture(dpy, dst->x11RenderHandle(), picmask, &pattr);
return;
@@ -1020,11 +1020,11 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
GC gc;
if ( mask && !mono_src ) { // fast masked blt
- bool temp_gc = FALSE;
+ bool temp_gc = false;
if ( mask->data->maskgc ) {
gc = (GC)mask->data->maskgc; // we have a premade mask GC
} else {
- if ( FALSE && src_pm->optimization() == TQPixmap::NormalOptim ) { // #### cache disabled
+ if ( false && src_pm->optimization() == TQPixmap::NormalOptim ) { // #### cache disabled
// Compete for the global cache
gc = cache_mask_gc( dpy, dst->handle(),
mask->data->ser_no,
@@ -1039,7 +1039,7 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
if ( src_pm->optimization() == TQPixmap::BestOptim ) {
mask->data->maskgc = gc;
} else {
- temp_gc = TRUE;
+ temp_gc = true;
}
}
}
@@ -1095,14 +1095,14 @@ void bitBlt( TQPaintDevice *dst, int dx, int dy,
gcvals.ts_x_origin = dx - sx;
gcvals.ts_y_origin = dy - sy;
- bool clipmask = FALSE;
+ bool clipmask = false;
if ( mask ) {
if ( ((TQPixmap*)src)->data->selfmask ) {
gcvals.fill_style = FillStippled;
} else {
XSetClipMask( dpy, gc, mask->handle() );
XSetClipOrigin( dpy, gc, dx-sx, dy-sy );
- clipmask = TRUE;
+ clipmask = true;
}
}