File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -406,19 +406,19 @@ namespace SDL {
406
406
}
407
407
408
408
Color operator +(const Color bottom, const Color top) {
409
- return Color::blend (bottom, top, Color:: BlendMode::add);
409
+ return Color::blend (bottom, top, BlendMode::add);
410
410
}
411
411
412
412
Color operator -(const Color bottom, const Color top) {
413
- return Color::blend (bottom, top, Color:: BlendMode::subtract);
413
+ return Color::blend (bottom, top, BlendMode::subtract);
414
414
}
415
415
416
416
Color operator *(const Color bottom, const Color top) {
417
- return Color::blend (bottom, top, Color:: BlendMode::multiply);
417
+ return Color::blend (bottom, top, BlendMode::multiply);
418
418
}
419
419
420
420
Color operator /(const Color bottom, const Color top) {
421
- return Color::blend (bottom, top, Color:: BlendMode::divide);
421
+ return Color::blend (bottom, top, BlendMode::divide);
422
422
}
423
423
424
424
Color operator *(cfloat scalar, const Color c) {
Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ namespace SDL {
72
72
Color with_alpha (cuchar alpha) const ;
73
73
Color opaque () const ;
74
74
75
- using BlendMode = _implementation::color::BlendMode;
76
-
77
75
static Color blend (
78
76
const Color bottom,
79
77
const Color top,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ namespace SDL {
87
87
while (!done) {
88
88
size_t col = 0 ;
89
89
bool line_done;
90
- Cursor:: Pixel i;
90
+ Pixel i;
91
91
std::tie (line_done, i) = next_element (true );
92
92
93
93
while (!line_done) {
@@ -101,14 +101,14 @@ namespace SDL {
101
101
++ col;
102
102
103
103
switch (i) {
104
- case Cursor:: Pixel::_:
104
+ case Pixel::_:
105
105
break ;
106
- case Cursor:: Pixel::X:
106
+ case Pixel::X:
107
107
data[index ] += 1 ; // sets the last bit to one.
108
- case Cursor:: Pixel::O:
108
+ case Pixel::O:
109
109
mask[index ] += 1 ;
110
110
break ;
111
- case Cursor:: Pixel::Z:
111
+ case Pixel::Z:
112
112
data[index ] += 1 ;
113
113
break ;
114
114
}
You can’t perform that action at this time.
0 commit comments