diff --git a/headers/private/app/ServerReadOnlyMemory.h b/headers/private/app/ServerReadOnlyMemory.h index 477ee4c07b..6ceadfde25 100644 --- a/headers/private/app/ServerReadOnlyMemory.h +++ b/headers/private/app/ServerReadOnlyMemory.h @@ -40,8 +40,10 @@ index_to_color_which(int32 index) if (index >= 0 && index < kNumColors) { if ((color_which)index < B_WINDOW_INACTIVE_BORDER_COLOR) return (color_which)(index + 1); - else - return (color_which)(index + B_SUCCESS_COLOR - B_WINDOW_INACTIVE_BORDER_COLOR); + else { + return (color_which)(index + B_SUCCESS_COLOR + - B_WINDOW_INACTIVE_BORDER_COLOR); + } } return (color_which)-1;