QPixelFormat: have field 'unused' have the correct number of bits
4+6*6+3*1+4+2+6+8 = 63, not 64, so make 'unused' have 9 bits width. Change-Id: I06e66074a09e93538fac01182c5a0d009d9b6583 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
fe01a3bea6
commit
a86f2d4083
@ -176,11 +176,12 @@ private:
|
||||
quint64 type_interpretation : 4;
|
||||
quint64 byte_order : 2;
|
||||
quint64 sub_enum : 6;
|
||||
quint64 unused : 8;
|
||||
quint64 unused : 9;
|
||||
|
||||
friend Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline bool operator==(const QPixelFormat &fmt1, const QPixelFormat &fmt2);
|
||||
friend Q_DECL_CONST_FUNCTION Q_DECL_CONSTEXPR inline bool operator!=(const QPixelFormat &fmt1, const QPixelFormat &fmt2);
|
||||
};
|
||||
Q_STATIC_ASSERT(sizeof(QPixelFormat) == sizeof(quint64));
|
||||
Q_DECLARE_TYPEINFO(QPixelFormat, Q_PRIMITIVE_TYPE);
|
||||
|
||||
class QPixelFormatRgb : public QPixelFormat
|
||||
|
Loading…
x
Reference in New Issue
Block a user