Skip to content

Commit a705ace

Browse files
committed
Default constructor for RGB565
1 parent f4e5d4c commit a705ace

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

util/colors_rgb565.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ struct RGB565 {
77
uint16_t g : 6;
88
uint16_t b : 5;
99

10+
constexpr RGB565() {
11+
}
12+
1013
constexpr RGB565(uint8_t red, uint8_t green, uint8_t blue)
1114
: r(red >> 3)
1215
, g(green >> 2)

0 commit comments

Comments
 (0)