1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:27:34 +00:00

Fire: Replace #defines with constexprs

This commit is contained in:
MacDue 2022-05-08 15:54:41 +01:00 committed by Linus Groh
parent ebb35e03be
commit 934ea4faf1

View file

@ -42,9 +42,9 @@
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>
#define FIRE_WIDTH 320 static constexpr int FIRE_WIDTH = 320;
#define FIRE_HEIGHT 200 static constexpr int FIRE_HEIGHT = 200;
#define FIRE_MAX 29 static constexpr int FIRE_MAX = 29;
static constexpr Array<Color, 30> s_palette = { static constexpr Array<Color, 30> s_palette = {
Color(0x07, 0x07, 0x07), Color(0x1F, 0x07, 0x07), Color(0x2F, 0x0F, 0x07), Color(0x07, 0x07, 0x07), Color(0x1F, 0x07, 0x07), Color(0x2F, 0x0F, 0x07),