Skip to content

Commit

Permalink
Fire: Replace #defines with constexprs
Browse files Browse the repository at this point in the history
  • Loading branch information
MacDue authored and linusg committed May 8, 2022
1 parent ebb35e0 commit 934ea4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Userland/Demos/Fire/Fire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 934ea4f

Please sign in to comment.