diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2020-03-06 20:15:52 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2020-03-06 20:15:52 +0000 |
commit | 962431dd3df0062e5762165eb69dfc23608c8aad (patch) | |
tree | a4802a1af8fb85ed87b53e4969aeab8e6938393a /include | |
parent | 0e6ba162b22ca64b323ed9071c64a3e31b93c0f6 (diff) | |
download | netsurf-962431dd3df0062e5762165eb69dfc23608c8aad.tar.gz netsurf-962431dd3df0062e5762165eb69dfc23608c8aad.tar.bz2 |
Rename mask to msk
There's something about "mask" which causes the version of GCC we use for the m68k-amigaos build to misinterpret the code
Diffstat (limited to 'include')
-rw-r--r-- | include/netsurf/plot_style.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netsurf/plot_style.h b/include/netsurf/plot_style.h index fee7a1078..6f2977f63 100644 --- a/include/netsurf/plot_style.h +++ b/include/netsurf/plot_style.h @@ -214,7 +214,7 @@ static inline colour colour_engorge_component( bool dark, enum plot_colour_component comp) { - static const colour mask[PLOT_COLOUR_COMPONENT_ALPHA] = { + static const colour msk[PLOT_COLOUR_COMPONENT_ALPHA] = { [PLOT_COLOUR_COMPONENT_RED] = 0x0000ff, [PLOT_COLOUR_COMPONENT_GREEN] = 0x00ff00, [PLOT_COLOUR_COMPONENT_BLUE] = 0xff0000, @@ -224,7 +224,7 @@ static inline colour colour_engorge_component( assert(comp < PLOT_COLOUR_COMPONENT_ALPHA); - return (mask[comp] & l) | (~mask[comp] & d); + return (msk[comp] & l) | (~msk[comp] & d); } |