Change Colour constructors to be constexpr

This commit is contained in:
Jonathan G Rennison
2023-08-14 17:07:42 +01:00
parent 95f3cf2a8e
commit 2b8171093a
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@
#endif
/** Cached black value. */
static const Colour _black_colour(0, 0, 0);
static const constexpr Colour _black_colour(0, 0, 0);
template <typename SetPixelT>
void Blitter::DrawLineGeneric(int x1, int y1, int x2, int y2, int screen_width, int screen_height, int width, int dash, SetPixelT set_pixel)