Skip to content

Commit

Permalink
Reorder from lowest to highest sized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Sep 27, 2017
1 parent 4a13314 commit 67ff372
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
6 changes: 3 additions & 3 deletions menu/menu_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ typedef struct menu_input

struct
{
bool back;
bool pressed[2];
int16_t x;
int16_t y;
int16_t dx;
int16_t dy;
float accel;
bool pressed[2];
bool back;
unsigned ptr;
unsigned counter;
float accel;
} pointer;
} menu_input_t;

Expand Down
31 changes: 15 additions & 16 deletions setting_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,14 @@ struct rarch_setting_group_info

struct rarch_setting
{
enum setting_type browser_selection_type;
enum msg_hash_enums enum_idx;
enum msg_hash_enums enum_value_idx;
enum setting_type type;

bool dont_use_enum_idx_representation;
bool enforce_minrange;
bool enforce_maxrange;

const char *rounding_fraction;
const char *name;
const char *short_description;
const char *group;
const char *subgroup;
const char *parent_group;
const char *values;

uint8_t index;
uint8_t index_offset;
Expand All @@ -111,11 +108,19 @@ struct rarch_setting

float step;

uint64_t flags;
uint64_t free_flags;

double min;
double max;

uint64_t flags;
uint64_t free_flags;
const char *rounding_fraction;
const char *name;
const char *short_description;
const char *group;
const char *subgroup;
const char *parent_group;
const char *values;

change_handler_t change_handler;
change_handler_t read_handler;
Expand Down Expand Up @@ -176,12 +181,6 @@ struct rarch_setting
const char *off_label;
const char *on_label;
} boolean;

enum setting_type browser_selection_type;
enum msg_hash_enums enum_idx;
enum msg_hash_enums enum_value_idx;
enum setting_type type;

};

struct rarch_setting_info
Expand Down

0 comments on commit 67ff372

Please sign in to comment.