mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
fix warning regarding nested anonymus union
This commit is contained in:
parent
36eae75a5a
commit
4d61e8fd01
@ -47,13 +47,15 @@ public:
|
|||||||
VGradient::Mode mMode;
|
VGradient::Mode mMode;
|
||||||
VGradientStops mStops;
|
VGradientStops mStops;
|
||||||
float mAlpha{1.0};
|
float mAlpha{1.0};
|
||||||
union {
|
struct Linear{
|
||||||
struct {
|
|
||||||
float x1, y1, x2, y2;
|
float x1, y1, x2, y2;
|
||||||
} linear;
|
};
|
||||||
struct {
|
struct Radial{
|
||||||
float cx, cy, fx, fy, cradius, fradius;
|
float cx, cy, fx, fy, cradius, fradius;
|
||||||
} radial;
|
};
|
||||||
|
union {
|
||||||
|
Linear linear;
|
||||||
|
Radial radial;
|
||||||
};
|
};
|
||||||
VMatrix mMatrix;
|
VMatrix mMatrix;
|
||||||
};
|
};
|
||||||
|
@ -103,13 +103,15 @@ private:
|
|||||||
|
|
||||||
struct VGradientData {
|
struct VGradientData {
|
||||||
VGradient::Spread mSpread;
|
VGradient::Spread mSpread;
|
||||||
union {
|
struct Linear{
|
||||||
struct {
|
|
||||||
float x1, y1, x2, y2;
|
float x1, y1, x2, y2;
|
||||||
} linear;
|
};
|
||||||
struct {
|
struct Radial{
|
||||||
float cx, cy, fx, fy, cradius, fradius;
|
float cx, cy, fx, fy, cradius, fradius;
|
||||||
} radial;
|
};
|
||||||
|
union {
|
||||||
|
Linear linear;
|
||||||
|
Radial radial;
|
||||||
};
|
};
|
||||||
const uint32_t *mColorTable;
|
const uint32_t *mColorTable;
|
||||||
bool mColorTableAlpha;
|
bool mColorTableAlpha;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user