@@ -34,27 +34,27 @@ static const int NUM_PIECES = MAP_HEIGHT / TEXTURE_SIZE;
34
34
35
35
static const color32 arrowcol[9 ] =
36
36
{
37
- COLOR32 (255 , 0 , 0 , 255 ), // Red.
38
- COLOR32 ( 12 , 74 , 206 , 255 ), // Blue.
39
- COLOR32 (145 , 12 , 206 , 255 ), // Purple.
40
- COLOR32 (255 , 255 , 0 , 255 ), // Yellow.
41
- COLOR32 (206 , 12 , 113 , 255 ), // Pink.
42
- COLOR32 (247 , 148 , 29 , 255 ), // Orange.
43
- COLOR32 (105 , 231 , 245 , 255 ), // Teal.
44
- COLOR32 ( 0 , 198 , 0 , 255 ), // Green.
45
- COLOR32 (132 , 132 , 132 , 255 ), // Gray.
37
+ RGBAtoColor32 (255 , 0 , 0 , 255 ), // Red.
38
+ RGBAtoColor32 ( 12 , 74 , 206 , 255 ), // Blue.
39
+ RGBAtoColor32 (145 , 12 , 206 , 255 ), // Purple.
40
+ RGBAtoColor32 (255 , 255 , 0 , 255 ), // Yellow.
41
+ RGBAtoColor32 (206 , 12 , 113 , 255 ), // Pink.
42
+ RGBAtoColor32 (247 , 148 , 29 , 255 ), // Orange.
43
+ RGBAtoColor32 (105 , 231 , 245 , 255 ), // Teal.
44
+ RGBAtoColor32 ( 0 , 198 , 0 , 255 ), // Green.
45
+ RGBAtoColor32 (132 , 132 , 132 , 255 ), // Gray.
46
46
};
47
47
static const color32 freezecol =
48
48
{
49
- COLOR32 (64 , 128 , 0 , 255 ) // Green
49
+ RGBAtoColor32 (64 , 128 , 0 , 255 ) // Green
50
50
};
51
51
static const color32 rollcol =
52
52
{
53
- COLOR32 (96 , 96 , 128 , 255 ), // Blue gray
53
+ RGBAtoColor32 (96 , 96 , 128 , 255 ), // Blue gray
54
54
};
55
55
static const color32 minecol =
56
56
{
57
- COLOR32 (192 , 192 , 192 , 255 ), // Light gray
57
+ RGBAtoColor32 (192 , 192 , 192 , 255 ), // Light gray
58
58
};
59
59
60
60
struct SetPixelData
@@ -141,7 +141,7 @@ void renderNotes(SetPixelData& spd, const int* colx)
141
141
color32 color;
142
142
if (note.isSelected )
143
143
{
144
- color = COLOR32 (255 , 255 , 255 , 255 );
144
+ color = RGBAtoColor32 (255 , 255 , 255 , 255 );
145
145
}
146
146
else
147
147
{
@@ -163,7 +163,7 @@ void renderNotes(SetPixelData& spd, const int* colx)
163
163
color32 color;
164
164
if (note.isSelected )
165
165
{
166
- color = COLOR32 (255 , 255 , 255 , 255 );
166
+ color = RGBAtoColor32 (255 , 255 , 255 , 255 );
167
167
}
168
168
else
169
169
{
@@ -434,20 +434,20 @@ void draw()
434
434
auto region = gSelection ->getSelectedRegion ();
435
435
double top = gView ->rowToOffset (region.beginRow );
436
436
double btm = gView ->rowToOffset (region.endRow );
437
- drawRegion (rect.x , rect.w , top, btm, COLOR32 (153 , 255 , 153 , 153 ));
437
+ drawRegion (rect.x , rect.w , top, btm, RGBAtoColor32 (153 , 255 , 153 , 153 ));
438
438
}
439
439
440
440
// Draw the marker lines for the first and last row.
441
441
recti chartRect = myGetChartRect ();
442
- Draw::fill (SideT (chartRect, 1 ), COLOR32 (128 , 128 , 128 , 255 ));
443
- Draw::fill (SideB (chartRect, 1 ), COLOR32 (128 , 128 , 128 , 255 ));
442
+ Draw::fill (SideT (chartRect, 1 ), RGBAtoColor32 (128 , 128 , 128 , 255 ));
443
+ Draw::fill (SideB (chartRect, 1 ), RGBAtoColor32 (128 , 128 , 128 , 255 ));
444
444
445
445
// Draw the view range.
446
446
if (myNotesH > 0 )
447
447
{
448
448
double top = gView ->yToOffset (0 );
449
449
double btm = gView ->yToOffset (gView ->getHeight ());
450
- drawRegion (rect.x , rect.w , top, btm, COLOR32 (255 , 204 , 102 , 128 ));
450
+ drawRegion (rect.x , rect.w , top, btm, RGBAtoColor32 (255 , 204 , 102 , 128 ));
451
451
}
452
452
453
453
// Draw the minimap image.
0 commit comments