Skip to content

Commit 9095ddc

Browse files
committed
RGB565: fix missing const
1 parent 0c9f756 commit 9095ddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/colors_rgb565.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ struct RGB565 {
3939
}
4040

4141
//0..255
42-
constexpr uint8_t green() {
42+
constexpr uint8_t green() const {
4343
return (raw() & 0x07e0) >> 3;
4444
}
4545

4646
//0..255
47-
constexpr uint8_t blue() {
47+
constexpr uint8_t blue() const {
4848
return (raw() & 0x001f) << 3;
4949
}
5050
};

0 commit comments

Comments
 (0)