mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Update lc_colors.h
This commit is contained in:
parent
2a24933fa8
commit
30a911dad2
1 changed files with 2 additions and 2 deletions
|
@ -54,13 +54,13 @@ void lcLoadDefaultColors(lcStudStyle StudStyle);
|
||||||
bool lcLoadColorFile(lcFile& File, lcStudStyle StudStyle);
|
bool lcLoadColorFile(lcFile& File, lcStudStyle StudStyle);
|
||||||
int lcGetColorIndex(quint32 ColorCode);
|
int lcGetColorIndex(quint32 ColorCode);
|
||||||
|
|
||||||
constexpr quint32 lcGetColorCodeFromExtendedColor(int Color)
|
inline quint32 lcGetColorCodeFromExtendedColor(int Color)
|
||||||
{
|
{
|
||||||
const quint32 ConversionTable[] = { 4, 12, 2, 10, 1, 9, 14, 15, 8, 0, 6, 13, 13, 334, 36, 44, 34, 42, 33, 41, 46, 47, 7, 382, 6, 13, 11, 383 };
|
const quint32 ConversionTable[] = { 4, 12, 2, 10, 1, 9, 14, 15, 8, 0, 6, 13, 13, 334, 36, 44, 34, 42, 33, 41, 46, 47, 7, 382, 6, 13, 11, 383 };
|
||||||
return ConversionTable[Color];
|
return ConversionTable[Color];
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr quint32 lcGetColorCodeFromOriginalColor(int Color)
|
inline quint32 lcGetColorCodeFromOriginalColor(int Color)
|
||||||
{
|
{
|
||||||
const quint32 ConversionTable[] = { 0, 2, 4, 9, 7, 6, 22, 8, 10, 11, 14, 16, 18, 9, 21, 20, 22, 8, 10, 11 };
|
const quint32 ConversionTable[] = { 0, 2, 4, 9, 7, 6, 22, 8, 10, 11, 14, 16, 18, 9, 21, 20, 22, 8, 10, 11 };
|
||||||
return lcGetColorCodeFromExtendedColor(ConversionTable[Color]);
|
return lcGetColorCodeFromExtendedColor(ConversionTable[Color]);
|
||||||
|
|
Loading…
Reference in a new issue