Fix slcd_trapezoids.cxx:38:5: error: array designators are a C99 extension

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-04 18:36:00 +08:00 committed by Petro Karashchenko
parent f85a6b6fb9
commit 8554db0b5e

View File

@ -35,25 +35,21 @@ namespace SLcd
const struct SLcdTrapezoidRun GTop_Runs[NTOP_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GTop_Runs[NTOP_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 11703, .leftx = 11703,
.rightx = 31208, .rightx = 31208,
.y = 0 .y = 0
}, },
[1] =
{ {
.leftx = 8972, .leftx = 8972,
.rightx = 27323, .rightx = 27323,
.y = 780 .y = 780
}, },
[2] =
{ {
.leftx = 9655, .leftx = 9655,
.rightx = 34328, .rightx = 34328,
.y = 1560 .y = 1560
}, },
[3] =
{ {
.leftx = 14434, .leftx = 14434,
.rightx = 28867, .rightx = 28867,
@ -65,25 +61,21 @@ namespace SLcd
const struct SLcdTrapezoidRun GTopLeft_Runs[NTOPLEFT_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GTopLeft_Runs[NTOPLEFT_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 7022, .leftx = 7022,
.rightx = 7022, .rightx = 7022,
.y = 2341 .y = 2341
}, },
[1] =
{ {
.leftx = 5461, .leftx = 5461,
.rightx = 9362, .rightx = 9362,
.y = 4681 .y = 4681
}, },
[2] =
{ {
.leftx = 5098, .leftx = 5098,
.rightx = 12873, .rightx = 12873,
.y = 8192 .y = 8192
}, },
[3] =
{ {
.leftx = 3193, .leftx = 3193,
.rightx = 10923, .rightx = 10923,
@ -107,37 +99,31 @@ namespace SLcd
const struct SLcdTrapezoidRun GTopRight_Runs[NTOPRIGHT_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GTopRight_Runs[NTOPRIGHT_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 37059, .leftx = 37059,
.rightx = 37059, .rightx = 37059,
.y = 3901 .y = 3901
}, },
[1] =
{ {
.leftx = 33997, .leftx = 33997,
.rightx = 37839, .rightx = 37839,
.y = 6242 .y = 6242
}, },
[2] =
{ {
.leftx = 30427, .leftx = 30427,
.rightx = 37591, .rightx = 37591,
.y = 8972 .y = 8972
}, },
[3] =
{ {
.leftx = 28477, .leftx = 28477,
.rightx = 35924, .rightx = 35924,
.y = 27307 .y = 27307
}, },
[4] =
{ {
.leftx = 28518, .leftx = 28518,
.rightx = 35889, .rightx = 35889,
.y = 27697 .y = 27697
}, },
[5] =
{ {
.leftx = 32378, .leftx = 32378,
.rightx = 32378, .rightx = 32378,
@ -149,19 +135,16 @@ namespace SLcd
const struct SLcdTrapezoidRun GMiddle_Runs[NMIDDLE_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GMiddle_Runs[NMIDDLE_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 12483, .leftx = 12483,
.rightx = 27307, .rightx = 27307,
.y = 28867 .y = 28867
}, },
[1] =
{ {
.leftx = 8192, .leftx = 8192,
.rightx = 30427, .rightx = 30427,
.y = 32378 .y = 32378
}, },
[2] =
{ {
.leftx = 11703, .leftx = 11703,
.rightx = 25746, .rightx = 25746,
@ -173,32 +156,27 @@ namespace SLcd
const struct SLcdTrapezoidRun GBottomLeft_Runs[NBOTTOMLEFT_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GBottomLeft_Runs[NBOTTOMLEFT_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 5851, .leftx = 5851,
.rightx = 5851, .rightx = 5851,
.y = 33938 .y = 33938
, ,
}, },
[1] =
{ {
.leftx = 1950, .leftx = 1950,
.rightx = 9752, .rightx = 9752,
.y = 37449 .y = 37449
}, },
[2] =
{ {
.leftx = 370, .leftx = 370,
.rightx = 8192, .rightx = 8192,
.y = 55784 .y = 55784
}, },
[3] =
{ {
.leftx = 0, .leftx = 0,
.rightx = 3364, .rightx = 3364,
.y = 60075 .y = 60075
}, },
[4] =
{ {
.leftx = 1170, .leftx = 1170,
.rightx = 1170, .rightx = 1170,
@ -210,37 +188,31 @@ namespace SLcd
const struct SLcdTrapezoidRun GBottomRight_Runs[NBOTTOMRIGHT_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GBottomRight_Runs[NBOTTOMRIGHT_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 31988, .leftx = 31988,
.rightx = 31988, .rightx = 31988,
.y = 34328 .y = 34328
}, },
[1] =
{ {
.leftx = 28769, .leftx = 28769,
.rightx = 35109, .rightx = 35109,
.y = 37059 .y = 37059
}, },
[2] =
{ {
.leftx = 27307, .leftx = 27307,
.rightx = 34996, .rightx = 34996,
.y = 38229 .y = 38229
}, },
[3] =
{ {
.leftx = 25746, .leftx = 25746,
.rightx = 33183, .rightx = 33183,
.y = 56954 .y = 56954
}, },
[4] =
{ {
.leftx = 30324, .leftx = 30324,
.rightx = 32768, .rightx = 32768,
.y = 61245 .y = 61245
}, },
[5] =
{ {
.leftx = 31988, .leftx = 31988,
.rightx = 31988, .rightx = 31988,
@ -252,19 +224,16 @@ namespace SLcd
const struct SLcdTrapezoidRun GBottom_Runs[NBOTTOM_TRAPEZOIDS + 1] = const struct SLcdTrapezoidRun GBottom_Runs[NBOTTOM_TRAPEZOIDS + 1] =
{ {
[0] =
{ {
.leftx = 9362, .leftx = 9362,
.rightx = 24576, .rightx = 24576,
.y = 58124 .y = 58124
}, },
[1] =
{ {
.leftx = 2731, .leftx = 2731,
.rightx = 31988, .rightx = 31988,
.y = 63976 .y = 63976
}, },
[2] =
{ {
.leftx = 4681, .leftx = 4681,
.rightx = 28477, .rightx = 28477,