summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qdrawhelper_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/painting/qdrawhelper_p.h')
-rw-r--r--src/gui/painting/qdrawhelper_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h
index ec9efcd49a..5df2b1f6fa 100644
--- a/src/gui/painting/qdrawhelper_p.h
+++ b/src/gui/painting/qdrawhelper_p.h
@@ -677,14 +677,14 @@ struct quint24 {
inline quint24::quint24(uint value)
{
- data[0] = uchar(value);
+ data[0] = uchar(value >> 16);
data[1] = uchar(value >> 8);
- data[2] = uchar(value >> 16);
+ data[2] = uchar(value);
}
inline quint24::operator uint() const
{
- return data[0] | (data[1] << 8) | (data[2] << 16);
+ return data[2] | (data[1] << 8) | (data[0] << 16);
}
template <class T>