Author: manolo
Date: 2012-05-08 09:48:38 -0700 (Tue, 08 May 2012)
New Revision: 9466
Log:
Fixed complex polygon drawing as evidenced by the device demo program.
Modified:
branches/branch-3.0/src/fltk3/vertex.cxx
Modified: branches/branch-3.0/src/fltk3/vertex.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/vertex.cxx 2012-05-08 16:28:37 UTC (rev
9465)
+++ branches/branch-3.0/src/fltk3/vertex.cxx 2012-05-08 16:48:38 UTC (rev
9466)
@@ -204,9 +204,9 @@
#if defined(__APPLE_QUARTZ__)
void fltk3::QuartzGraphicsDriver::end_polygon() {
+ fixloop();
int n = vertex_no();
XPOINT *p = vertices();
- fixloop();
if (n < 3) {
end_line();
return;
@@ -222,9 +222,9 @@
}
#elif defined(WIN32)
void fltk3::GDIGraphicsDriver::end_polygon() {
+ fixloop();
int n = vertex_no();
XPOINT *p = vertices();
- fixloop();
if (n < 3) {
end_line();
return;
@@ -236,9 +236,9 @@
}
#else
void fltk3::XlibGraphicsDriver::end_polygon() {
+ fixloop();
int n = vertex_no();
XPOINT *p = vertices();
- fixloop();
if (n < 3) {
end_line();
return;
@@ -283,9 +283,9 @@
#if defined(__APPLE_QUARTZ__)
void fltk3::QuartzGraphicsDriver::end_complex_polygon() {
+ gap();
int n = vertex_no();
XPOINT *p = vertices();
- gap();
if (n < 3) {
end_line();
return;
@@ -301,9 +301,9 @@
}
#elif defined(WIN32)
void fltk3::GDIGraphicsDriver::end_complex_polygon() {
+ gap();
int n = vertex_no();
XPOINT *p = vertices();
- gap();
if (n < 3) {
end_line();
return;
@@ -315,9 +315,9 @@
}
#else
void fltk3::XlibGraphicsDriver::end_complex_polygon() {
+ gap();
int n = vertex_no();
XPOINT *p = vertices();
- gap();
if (n < 3) {
end_line();
return;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit