mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove enum typedef in color.h
Just call the enum that way and be done with it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
37be879e17
commit
eac11683a9
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ static inline QColor makeColor(double r, double g, double b, double a = 1.0)
|
|||
#define VELOCITY_COLORS_START_IDX VELO_STABLE
|
||||
#define VELOCITY_COLORS 5
|
||||
|
||||
typedef enum {
|
||||
enum color_index_t {
|
||||
/* SAC colors. Order is important, the SAC_COLORS_START_IDX define above. */
|
||||
SAC_1,
|
||||
SAC_2,
|
||||
|
@ -145,7 +145,7 @@ typedef enum {
|
|||
CALC_CEILING_DEEP,
|
||||
TISSUE_PERCENTAGE,
|
||||
DURATION_LINE
|
||||
} color_index_t;
|
||||
};
|
||||
|
||||
QColor getColor(const color_index_t i, bool isGrayscale = false);
|
||||
QColor getSacColor(int sac, int diveSac);
|
||||
|
|
Loading…
Add table
Reference in a new issue