diff options
Diffstat (limited to 'src/kernel/qdragobject.cpp')
-rw-r--r-- | src/kernel/qdragobject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/qdragobject.cpp b/src/kernel/qdragobject.cpp index 191b1c098..428000a36 100644 --- a/src/kernel/qdragobject.cpp +++ b/src/kernel/qdragobject.cpp @@ -1749,9 +1749,9 @@ TQColorDrag::TQColorDrag( TQWidget *dragsource, const char *name ) void TQColorDrag::setColor( const TQColor &col ) { - short r = (col.red() << 8) | col.red(); - short g = (col.green() << 8) | col.green(); - short b = (col.blue() << 8) | col.blue(); + unsigned short r = (col.red() << 8) | col.red(); + unsigned short g = (col.green() << 8) | col.green(); + unsigned short b = (col.blue() << 8) | col.blue(); // make sure we transmit data in network order r = htons(r); |