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;
|
||||
VGradientStops mStops;
|
||||
float mAlpha{1.0};
|
||||
struct Linear{
|
||||
float x1, y1, x2, y2;
|
||||
};
|
||||
struct Radial{
|
||||
float cx, cy, fx, fy, cradius, fradius;
|
||||
};
|
||||
union {
|
||||
struct {
|
||||
float x1, y1, x2, y2;
|
||||
} linear;
|
||||
struct {
|
||||
float cx, cy, fx, fy, cradius, fradius;
|
||||
} radial;
|
||||
Linear linear;
|
||||
Radial radial;
|
||||
};
|
||||
VMatrix mMatrix;
|
||||
};
|
||||
|
@ -103,13 +103,15 @@ private:
|
||||
|
||||
struct VGradientData {
|
||||
VGradient::Spread mSpread;
|
||||
struct Linear{
|
||||
float x1, y1, x2, y2;
|
||||
};
|
||||
struct Radial{
|
||||
float cx, cy, fx, fy, cradius, fradius;
|
||||
};
|
||||
union {
|
||||
struct {
|
||||
float x1, y1, x2, y2;
|
||||
} linear;
|
||||
struct {
|
||||
float cx, cy, fx, fy, cradius, fradius;
|
||||
} radial;
|
||||
Linear linear;
|
||||
Radial radial;
|
||||
};
|
||||
const uint32_t *mColorTable;
|
||||
bool mColorTableAlpha;
|
||||
|
Loading…
x
Reference in New Issue
Block a user