Update XFxElemVisualState parsing logic
This commit is contained in:
parent
0e141ae95c
commit
296a25d26f
@ -27,5 +27,23 @@ void XFxElemVisualState::Clear()
|
|||||||
|
|
||||||
void XFxElemVisualState::ParseData(QDataStream *aStream)
|
void XFxElemVisualState::ParseData(QDataStream *aStream)
|
||||||
{
|
{
|
||||||
|
quint8 r, g, b, a;
|
||||||
|
*aStream
|
||||||
|
>> r
|
||||||
|
>> g
|
||||||
|
>> b
|
||||||
|
>> a;
|
||||||
|
mColor = QColor(r, g, b, a);
|
||||||
|
|
||||||
|
*aStream
|
||||||
|
>> mRotationDelta
|
||||||
|
>> mRotationTotal;
|
||||||
|
|
||||||
|
float width, height;
|
||||||
|
*aStream
|
||||||
|
>> width
|
||||||
|
>> height;
|
||||||
|
mSize = QSize(width, height);
|
||||||
|
|
||||||
|
*aStream >> mScale;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user