diff options
author | MacDue <macdue@dueutil.tech> | 2022-05-08 15:54:41 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-08 18:15:12 +0200 |
commit | 934ea4faf15e344f8cbeba45baa38fd1eb5afeaf (patch) | |
tree | 1eebd0ce756a7e414e78affe2c37adc10298af60 | |
parent | ebb35e03be75a4a783b0477d858d08ce441a4065 (diff) | |
download | serenity-934ea4faf15e344f8cbeba45baa38fd1eb5afeaf.zip |
Fire: Replace #defines with constexprs
-rw-r--r-- | Userland/Demos/Fire/Fire.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Demos/Fire/Fire.cpp b/Userland/Demos/Fire/Fire.cpp index 07c9b6b8ac..ece640d618 100644 --- a/Userland/Demos/Fire/Fire.cpp +++ b/Userland/Demos/Fire/Fire.cpp @@ -42,9 +42,9 @@ #include <time.h> #include <unistd.h> -#define FIRE_WIDTH 320 -#define FIRE_HEIGHT 200 -#define FIRE_MAX 29 +static constexpr int FIRE_WIDTH = 320; +static constexpr int FIRE_HEIGHT = 200; +static constexpr int FIRE_MAX = 29; static constexpr Array<Color, 30> s_palette = { Color(0x07, 0x07, 0x07), Color(0x1F, 0x07, 0x07), Color(0x2F, 0x0F, 0x07), |