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
a42d7a27
Commit
a42d7a27
authored
Dec 05, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed rendering artifact in glow_draw when rendering a filled polygon.
parent
dd129da5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
xtt/lib/glow/qt/glow_draw_qt.cqt
xtt/lib/glow/qt/glow_draw_qt.cqt
+6
-6
No files found.
xtt/lib/glow/qt/glow_draw_qt.cqt
View file @
a42d7a27
...
...
@@ -1206,14 +1206,14 @@ int GlowDrawQt::polyline_helper(GlowWind* wind, int painter_type, int size,
}
if (fill) {
unique_ptr<QPoint[]> qpoints = points_to_qt_points(points, point_cnt);
painter->drawPolygon(qpoints.get(), point_cnt);
} else {
int cnt;
unique_ptr<QPoint[]> qpoints = points_to_qt_points_curve(wind, points, point_cnt, &cnt);
painter->drawPolygon(qpoints.get(), cnt);
} else {
unique_ptr<QPoint[]> qpoints = points_to_qt_points(points, point_cnt);
painter->setBrush(Qt::NoBrush);
// debug_print("polyline painter_type=%d, fill=%d, point_cnt=%d\n", painter_type, fill, point_cnt);
painter->drawPolyline(qpoints.get(),
point_
cnt);
painter->drawPolyline(qpoints.get(), cnt);
}
return 1;
...
...
@@ -1484,7 +1484,7 @@ void GlowDrawQt::copy_buffer(
void GlowDrawQt::get_window_size(GlowWind* wind, int* width, int* height)
{
DrawWindQt* w = (DrawWindQt*)wind->window;
QSize size = w->
window
->size();
QSize size = w->
buffer
->size();
*width = size.width();
*height = size.height();
}
...
...
@@ -1792,7 +1792,7 @@ void GlowDrawQt::set_background(GlowWind* wind, glow_eDrawType drawtype,
w->background_pixmap_height = pixmap_height;
QPalette pal;
pal.setBrush(QPalette::Background,
w->background_pixmap->scaled(w->
window
->size(), Qt::IgnoreAspectRatio));
w->background_pixmap->scaled(w->
buffer
->size(), Qt::IgnoreAspectRatio));
w->window->setPalette(pal);
if (w->buffer) {
buffer_background(w, 0);
...
...
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