mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
There are multiple line attribute flags enums, use only one
This commit is contained in:
parent
1d1792c217
commit
ef8a8dae07
@ -1799,10 +1799,10 @@ static void gdi_canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox, S
|
||||
SetMiterLimit(canvas->dc, (FLOAT)fix_to_double(stroke->attr.miter_limit), &old_miter);
|
||||
#endif
|
||||
|
||||
if (stroke->attr.flags & SPICE_LINE_ATTR_STYLED) {
|
||||
if (stroke->attr.flags & SPICE_LINE_FLAGS_STYLED) {
|
||||
user_style = gdi_get_userstyle(canvas, stroke->attr.style_nseg,
|
||||
stroke->attr.style,
|
||||
!!(stroke->attr.flags & SPICE_LINE_ATTR_STARTGAP));
|
||||
!!(stroke->attr.flags & SPICE_LINE_FLAGS_START_WITH_GAP));
|
||||
hpen = ExtCreatePen(PS_GEOMETRIC | ps_join | line_cap | PS_USERSTYLE,
|
||||
(uint32_t)fix_to_double(stroke->attr.width),
|
||||
&logbrush, stroke->attr.style_nseg, (DWORD *)user_style);
|
||||
|
||||
@ -630,8 +630,8 @@ static void gl_canvas_draw_stroke(SpiceCanvas *spice_canvas, SpiceRect *bbox, Sp
|
||||
set_op(canvas, stroke->fore_mode);
|
||||
set_brush(canvas, &stroke->brush);
|
||||
|
||||
if (stroke->attr.flags & SPICE_LINE_ATTR_STYLED) {
|
||||
WARN("SPICE_LINE_ATTR_STYLED");
|
||||
if (stroke->attr.flags & SPICE_LINE_FLAGS_STYLED) {
|
||||
WARN("SPICE_LINE_FLAGS_STYLED");
|
||||
}
|
||||
glc_set_line_width(canvas->glc, fix_to_double(stroke->attr.width));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user