Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d62ed5cd
Commit
d62ed5cd
authored
Dec 01, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No gradient on red error color
parent
630d3064
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
xtt/lib/glow/src/glow_growarc.cpp
xtt/lib/glow/src/glow_growarc.cpp
+3
-3
xtt/lib/glow/src/glow_growpolyline.cpp
xtt/lib/glow/src/glow_growpolyline.cpp
+2
-2
xtt/lib/glow/src/glow_growrect.cpp
xtt/lib/glow/src/glow_growrect.cpp
+3
-3
No files found.
xtt/lib/glow/src/glow_growarc.cpp
View file @
d62ed5cd
/*
* Proview $Id: glow_growarc.cpp,v 1.
8 2008-11-20 10:30:44
claes Exp $
* Proview $Id: glow_growarc.cpp,v 1.
9 2008-12-01 16:31:29
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -701,7 +701,7 @@ void GrowArc::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, void
grad
=
((
GrowNode
*
)
node
)
->
gradient
;
if
(
!
display_shadow
||
shadow_width
==
0
||
angle2
!=
360
)
{
if
(
grad
==
glow_eGradient_No
)
if
(
grad
==
glow_eGradient_No
||
fillcolor
==
glow_eDrawType_ColorRed
)
ctx
->
gdraw
->
fill_arc
(
w
,
ll_x
,
ll_y
,
ur_x
-
ll_x
,
ur_y
-
ll_y
,
angle1
-
rot
,
angle2
,
fillcolor
,
0
);
else
{
...
...
@@ -724,7 +724,7 @@ void GrowArc::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, void
if
(
relief
==
glow_eRelief_Down
)
drawtype_incr
=
-
shadow_contrast
;
if
(
grad
==
glow_eGradient_No
)
{
if
(
grad
==
glow_eGradient_No
||
fillcolor
==
glow_eDrawType_ColorRed
)
{
// Draw light shadow
drawtype
=
ctx
->
shift_drawtype
(
fillcolor
,
-
drawtype_incr
,
(
GrowNode
*
)
colornode
);
...
...
xtt/lib/glow/src/glow_growpolyline.cpp
View file @
d62ed5cd
/*
* Proview $Id: glow_growpolyline.cpp,v 1.1
0 2008-11-20 10:30:44
claes Exp $
* Proview $Id: glow_growpolyline.cpp,v 1.1
1 2008-12-01 16:31:29
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -382,7 +382,7 @@ void GrowPolyLine::draw( GlowWind *w, GlowTransform *t, int highlight, int hot,
else
if
(
fill_eq_shadow
&&
node
&&
((
GrowNode
*
)
node
)
->
shadow
)
drawtype
=
ctx
->
shift_drawtype
(
drawtype
,
shadow_contrast
,
(
GrowNode
*
)
colornode
);
if
(
grad
==
glow_eGradient_No
)
if
(
grad
==
glow_eGradient_No
||
drawtype
==
glow_eDrawType_ColorRed
)
ctx
->
gdraw
->
fill_polyline
(
w
,
points
,
a_points
.
a_size
,
drawtype
,
0
);
else
{
glow_eDrawType
f1
,
f2
;
...
...
xtt/lib/glow/src/glow_growrect.cpp
View file @
d62ed5cd
/*
* Proview $Id: glow_growrect.cpp,v 1.1
4 2008-11-20 10:30:44
claes Exp $
* Proview $Id: glow_growrect.cpp,v 1.1
5 2008-12-01 16:31:29
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -782,7 +782,7 @@ void GrowRect::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, void
}
if
(
fill
)
{
if
(
display_shadow
&&
ish
!=
0
)
{
if
(
grad
==
glow_eGradient_No
)
if
(
grad
==
glow_eGradient_No
||
fillcolor
==
glow_eDrawType_ColorRed
)
ctx
->
gdraw
->
fill_rect
(
w
,
ll_x
+
ish
,
ll_y
+
ish
,
ur_x
-
ll_x
-
2
*
ish
,
ur_y
-
ll_y
-
2
*
ish
,
fillcolor
);
else
{
...
...
@@ -806,7 +806,7 @@ void GrowRect::draw( GlowWind *w, GlowTransform *t, int highlight, int hot, void
}
}
else
{
if
(
grad
==
glow_eGradient_No
)
if
(
grad
==
glow_eGradient_No
||
fillcolor
==
glow_eDrawType_ColorRed
)
ctx
->
gdraw
->
fill_rect
(
w
,
ll_x
,
ll_y
,
ur_x
-
ll_x
,
ur_y
-
ll_y
,
fillcolor
);
else
{
glow_eDrawType
f1
,
f2
;
...
...
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