Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
7bb6007a
Commit
7bb6007a
authored
Apr 14, 2008
by
raburton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore xw2.6 compatibility, thanks to Raúl Sánchez Siles for patch.
parent
b0e906ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
colors.h
include/colors.h
+6
-4
No files found.
include/colors.h
View file @
7bb6007a
...
@@ -129,17 +129,19 @@ StructColors ColorRefs[NBCOLOR] =
...
@@ -129,17 +129,19 @@ StructColors ColorRefs[NBCOLOR] =
*/
*/
static
inline
wxColour
MakeColour
(
int
aColor
)
static
inline
wxColour
MakeColour
(
int
aColor
)
{
{
#if wxCHECK_VERSION(2,8,5)
int
alpha
=
GetAlpha
(
aColor
);
int
alpha
=
GetAlpha
(
aColor
);
alpha
=
alpha
?
alpha
:
wxALPHA_OPAQUE
;
alpha
=
alpha
?
alpha
:
wxALPHA_OPAQUE
;
#endif
int
ndx
=
aColor
&
MASKCOLOR
;
int
ndx
=
aColor
&
MASKCOLOR
;
return
wxColour
(
return
wxColour
(
ColorRefs
[
ndx
].
m_Red
,
ColorRefs
[
ndx
].
m_Red
,
ColorRefs
[
ndx
].
m_Green
,
ColorRefs
[
ndx
].
m_Green
,
ColorRefs
[
ndx
].
m_Blue
,
ColorRefs
[
ndx
].
m_Blue
(
unsigned
char
)
alpha
#if wxCHECK_VERSION(2,8,5)
,(
unsigned
char
)
alpha
#endif
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment