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
33d596bd
Commit
33d596bd
authored
Oct 23, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed polyline drawing.
parent
dcf8bf36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
xtt/lib/glow/qt/glow_draw_qt.cqt
xtt/lib/glow/qt/glow_draw_qt.cqt
+11
-8
No files found.
xtt/lib/glow/qt/glow_draw_qt.cqt
View file @
33d596bd
...
@@ -1211,16 +1211,19 @@ int GlowDrawQt::polyline_helper(GlowWind* wind, int painter_type, int size,
...
@@ -1211,16 +1211,19 @@ int GlowDrawQt::polyline_helper(GlowWind* wind, int painter_type, int size,
set_clip(w, painter);
set_clip(w, painter);
}
}
int cnt;
if (fill) {
QPoint* qpoints = points_to_qt_points_curve(wind, points, point_cnt, &cnt);
int cnt;
QPoint* qpoints = points_to_qt_points_curve(wind, points, point_cnt, &cnt);
if (!fill) {
painter->drawPolygon(qpoints, cnt);
delete[] qpoints;
} else {
QPoint* qpoints = points_to_qt_points(points, point_cnt);
painter->setBrush(Qt::NoBrush);
painter->setBrush(Qt::NoBrush);
debug_print("polyline painter_type=%d, fill=%d, point_cnt=%d\n", painter_type, fill, point_cnt);
painter->drawPolyline(qpoints, point_cnt);
delete[] qpoints;
}
}
// debug_print("polyline painter_type=%d, fill=%d, point_cnt=%d\n", painter_type, fill, point_cnt);
painter->drawPolygon(qpoints, point_cnt);
delete[] qpoints;
delete painter;
delete painter;
return 1;
return 1;
...
@@ -1252,7 +1255,7 @@ int GlowDrawQt::polyline_erase(
...
@@ -1252,7 +1255,7 @@ int GlowDrawQt::polyline_erase(
GlowWind* wind, glow_sPointX* points, int point_cnt, int idx)
GlowWind* wind, glow_sPointX* points, int point_cnt, int idx)
{
{
return polyline_helper(
return polyline_helper(
wind, glow_eDrawType_LineErase, idx, points, point_cnt
, true
);
wind, glow_eDrawType_LineErase, idx, points, point_cnt);
}
}
int GlowDrawQt::text(GlowWind* wind, int x, int y, char* text, int len,
int GlowDrawQt::text(GlowWind* wind, int x, int y, char* text, int len,
...
...
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