Commit ff36ccd4 authored by Claes Sjofors's avatar Claes Sjofors

Ge polyline draw bugfix for subwindows

parent 0fbd4d41
...@@ -2823,13 +2823,13 @@ GdkPoint *GlowDrawGtk::points_to_gdk_points_curve( GlowWind *w, glow_sPointX *po ...@@ -2823,13 +2823,13 @@ GdkPoint *GlowDrawGtk::points_to_gdk_points_curve( GlowWind *w, glow_sPointX *po
int last_idx = 0; int last_idx = 0;
for ( int i = 0; i < point_cnt; i++) { for ( int i = 0; i < point_cnt; i++) {
if ( idx == 0 && i != point_cnt - 1 && if ( idx == 0 && i != point_cnt - 1 &&
((points[i].x < 0 && points[i+1].x < 0) || ((points[i].x < w->subwindow_x && points[i+1].x < w->subwindow_x) ||
(points[i].x > w->window_width && points[i+1].x > w->window_width))) (points[i].x > w->subwindow_x + w->window_width && points[i+1].x > w->subwindow_x + w->window_width)))
continue; continue;
if ( idx != 0 && if ( idx != 0 &&
!((points[i].x < 0 && points[i-1].x < 0) || !((points[i].x < w->subwindow_x && points[i-1].x < w->subwindow_x) ||
(points[i].x > w->window_width && points[i-1].x > w->window_width))) (points[i].x > w->subwindow_x + w->window_width && points[i-1].x > w->subwindow_x + w->window_width)))
last_idx = idx; last_idx = idx;
gpoints[idx].x = points[i].x; gpoints[idx].x = points[i].x;
gpoints[idx].y = points[i].y; gpoints[idx].y = points[i].y;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment