Skip to content

Commit

Permalink
Use std::string for menu labels
Browse files Browse the repository at this point in the history
Making these non-consts is gonna be important for when i18n
support is added eventually.
  • Loading branch information
SuperFromND committed Oct 15, 2023
1 parent 6e84ed3 commit 00ab63d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ struct {

// similar data for the sandbox menu
// TODO: split off this (and other sandbox functions) into their own file
const char* sandbox_items[] = {
string sandbox_items[] = {
"Change Color",
"Shape Morph",
"Color Morph",
Expand Down Expand Up @@ -1799,7 +1799,7 @@ bool draw_title(int menu_selection, int frame_time) {
// ----------------------------------------------------------
// menu_selection: What is currently selected (range 0-3)

const char *menu_items[5] = {"Play", "Sandbox", "Tutorial", "Options", "Quit"};
string *menu_items[5] = {"Play", "Sandbox", "Tutorial", "Options", "Quit"};

int scale_mul = fmax(floor(fmin(height, width)/360), 1);
int char_height = font->h + 2;
Expand Down

0 comments on commit 00ab63d

Please sign in to comment.