summaryrefslogtreecommitdiffstats
path: root/src/kernel/qcolor_x11.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-27 02:13:42 -0600
commit520c05ef06ce203ad32470730f68402bc7719157 (patch)
tree8d0bb18bbbecb4c837e232848905e5819db84b81 /src/kernel/qcolor_x11.cpp
parentb82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff)
downloadtqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz
tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip
Automated update from qt3
Diffstat (limited to 'src/kernel/qcolor_x11.cpp')
-rw-r--r--src/kernel/qcolor_x11.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/kernel/qcolor_x11.cpp b/src/kernel/qcolor_x11.cpp
index 4328babc0..6be79b40b 100644
--- a/src/kernel/qcolor_x11.cpp
+++ b/src/kernel/qcolor_x11.cpp
@@ -396,9 +396,9 @@ uint TQColor::alloc( int screen )
screen = TQPaintDevice::x11AppScreen();
if ( !color_init )
return dpy ? (uint)BlackPixel(dpy, screen) : 0;
- int r = qRed(d.argb);
- int g = qGreen(d.argb);
- int b = qBlue(d.argb);
+ int r = tqRed(d.argb);
+ int g = tqGreen(d.argb);
+ int b = tqBlue(d.argb);
uint pix = 0;
TQColorScreenData *sd = screendata[screen];
if ( sd->g_truecolor ) { // truecolor: map to pixel
@@ -493,7 +493,7 @@ uint TQColor::alloc( int screen )
int unused, value;
hsv(&unused, &unused, &value);
if (value < 128) { // dark, use black
- d.argb = qRgb(0,0,0);
+ d.argb = tqRgb(0,0,0);
pix = (uint)BlackPixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -501,7 +501,7 @@ uint TQColor::alloc( int screen )
d.d8.pix = pix;
}
} else { // light, use white
- d.argb = qRgb(0xff,0xff,0xff);
+ d.argb = tqRgb(0xff,0xff,0xff);
pix = (uint)WhitePixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -547,7 +547,7 @@ uint TQColor::alloc( int screen )
int unused, value;
hsv(&unused, &unused, &value);
if (value < 128) { // dark, use black
- d.argb = qRgb(0,0,0);
+ d.argb = tqRgb(0,0,0);
pix = (uint)BlackPixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -555,7 +555,7 @@ uint TQColor::alloc( int screen )
d.d8.pix = pix;
}
} else { // light, use white
- d.argb = qRgb(0xff,0xff,0xff);
+ d.argb = tqRgb(0xff,0xff,0xff);
pix = (uint)WhitePixel( dpy, screen );
if ( screen == TQPaintDevice::x11AppScreen() ) {
d.d8.invalid = FALSE;
@@ -614,7 +614,7 @@ uint TQColor::pixel( int screen ) const
if (screen != TQPaintDevice::x11AppScreen() &&
// don't allocate color0 or color1, they have fixed pixel
// values for all screens
- d.argb != qRgba(255, 255, 255, 1) && d.argb != qRgba(0, 0, 0, 1))
+ d.argb != tqRgba(255, 255, 255, 1) && d.argb != tqRgba(0, 0, 0, 1))
return ((TQColor*)this)->alloc( screen );
return pixel();
}
@@ -630,7 +630,7 @@ void TQColor::setSystemNamedColor( const TQString& name )
d.argb = qt_get_rgb_val( name.latin1() );
TQRgb rgb;
if ( qt_get_named_rgb( name.latin1(), &rgb ) ) {
- setRgb( qRed(rgb), qGreen(rgb), qBlue(rgb) );
+ setRgb( tqRed(rgb), tqGreen(rgb), tqBlue(rgb) );
if ( colormodel == d8 ) {
d.d8.invalid = FALSE;
d.d8.dirty = TRUE;