Move B_COLOR_WHICH_COUNT to private ServerReadOnlyMemory header.
This means the B_COLOR_WHICH_COUNT goes from being a public constant to a private one. It sill looks like a public constant starting with a B_ though. I hope that's not a big deal. Too bad we can't get the count of an enum.
This commit is contained in:
parent
cb5f68f44c
commit
ab3c19541d
@ -331,12 +331,6 @@ enum color_which {
|
||||
B_KEYBOARD_NAVIGATION_COLOR = B_NAVIGATION_BASE_COLOR,
|
||||
B_MENU_SELECTION_BACKGROUND_COLOR = B_MENU_SELECTED_BACKGROUND_COLOR,
|
||||
|
||||
// Update this constant to be the largest color constant excluding
|
||||
// B_SUCCESS_COLOR and B_FAILURE_COLOR.
|
||||
// If you add a constant with index greater than 100 you'll have to add
|
||||
// to the second operand below and also update ServerReadOnlyMemory.h
|
||||
B_COLOR_WHICH_COUNT = B_SCROLL_BAR_THUMB_COLOR + 3,
|
||||
|
||||
// The following constants are deprecated, do not use in new code.
|
||||
B_DESKTOP_COLOR = 5
|
||||
// see BScreen class for B_DESKTOP_COLOR replacement
|
||||
|
@ -13,6 +13,13 @@
|
||||
#include <InterfaceDefs.h>
|
||||
|
||||
|
||||
// Update this constant with the largest color constant excluding
|
||||
// B_SUCCESS_COLOR and B_FAILURE_COLOR.
|
||||
// If you add a constant with index greater than 100 you'll have to add
|
||||
// to the second operand.
|
||||
static const int32 B_COLOR_WHICH_COUNT = B_SCROLL_BAR_THUMB_COLOR + 3;
|
||||
|
||||
|
||||
struct server_read_only_memory {
|
||||
rgb_color colors[B_COLOR_WHICH_COUNT];
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user