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
b70adc5f
Commit
b70adc5f
authored
Apr 25, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed color issue for stroked fonts with OpenGL backend and caching turned on.
parent
dd8601cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
22 deletions
+10
-22
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+10
-22
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
b70adc5f
...
...
@@ -1183,44 +1183,32 @@ void OPENGL_GAL::DrawCurve( const VECTOR2D& aStartPoint, const VECTOR2D& aContro
void
OPENGL_GAL
::
SetStrokeColor
(
COLOR4D
aColor
)
{
if
(
strokeColor
!=
aColor
)
{
isSetAttributes
=
true
;
strokeColor
=
aColor
;
// This is the default drawing color
glColor4d
(
aColor
.
r
,
aColor
.
g
,
aColor
.
b
,
aColor
.
a
);
}
}
void
OPENGL_GAL
::
SetFillColor
(
COLOR4D
aColor
)
{
if
(
fillColor
!=
aColor
)
{
isSetAttributes
=
true
;
fillColor
=
aColor
;
}
}
void
OPENGL_GAL
::
SetBackgroundColor
(
COLOR4D
aColor
)
{
if
(
backgroundColor
!=
aColor
)
{
isSetAttributes
=
true
;
backgroundColor
=
aColor
;
}
}
void
OPENGL_GAL
::
SetLineWidth
(
double
aLineWidth
)
{
if
(
lineWidth
!=
aLineWidth
)
{
isSetAttributes
=
true
;
lineWidth
=
aLineWidth
;
}
}
...
...
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