mirror of https://github.com/fltk/fltk
Fix line/polygon drawing bug when the number of unique vertices is too
small. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2906 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9f67d66c3a
commit
717aa7ec8f
7
CHANGES
7
CHANGES
|
@ -1,8 +1,11 @@
|
||||||
CHANGES IN FLTK 1.1.3
|
CHANGES IN FLTK 1.1.3
|
||||||
|
|
||||||
- Documentation updates.
|
- Documentation updates.
|
||||||
- The size_range() values were not honored under MacOS X.
|
- Lines with less than 2 unique vertices and polygons
|
||||||
[SF Bug #647074]
|
with less the 3 unique vertices were not drawn
|
||||||
|
properly. [SF Bug #647067]
|
||||||
|
- The size_range() values were not honored under MacOS
|
||||||
|
X. [SF Bug #647074]
|
||||||
- OpenGL windows didn't resize correctly on MacOS X.
|
- OpenGL windows didn't resize correctly on MacOS X.
|
||||||
[SF Bug #667855]
|
[SF Bug #667855]
|
||||||
- The menus incorrectly used the overlay visual when one
|
- The menus incorrectly used the overlay visual when one
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// "$Id: fl_vertex.cxx,v 1.5.2.3.2.5 2002/01/01 15:11:32 easysw Exp $"
|
// "$Id: fl_vertex.cxx,v 1.5.2.3.2.6 2003/01/14 23:48:01 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Portable drawing routines for the Fast Light Tool Kit (FLTK).
|
// Portable drawing routines for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
|
@ -131,6 +131,10 @@ void fl_end_points() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void fl_end_line() {
|
void fl_end_line() {
|
||||||
|
if (n < 2) {
|
||||||
|
fl_end_points();
|
||||||
|
return;
|
||||||
|
}
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (n>1) Polyline(fl_gc, p, n);
|
if (n>1) Polyline(fl_gc, p, n);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
|
@ -154,6 +158,10 @@ void fl_end_loop() {
|
||||||
|
|
||||||
void fl_end_polygon() {
|
void fl_end_polygon() {
|
||||||
fixloop();
|
fixloop();
|
||||||
|
if (n < 3) {
|
||||||
|
fl_end_line();
|
||||||
|
return;
|
||||||
|
}
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (n>2) {
|
if (n>2) {
|
||||||
SelectObject(fl_gc, fl_brush());
|
SelectObject(fl_gc, fl_brush());
|
||||||
|
@ -201,6 +209,10 @@ void fl_gap() {
|
||||||
|
|
||||||
void fl_end_complex_polygon() {
|
void fl_end_complex_polygon() {
|
||||||
fl_gap();
|
fl_gap();
|
||||||
|
if (n < 3) {
|
||||||
|
fl_end_line();
|
||||||
|
return;
|
||||||
|
}
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (n>2) {
|
if (n>2) {
|
||||||
SelectObject(fl_gc, fl_brush());
|
SelectObject(fl_gc, fl_brush());
|
||||||
|
@ -248,5 +260,5 @@ void fl_circle(double x, double y,double r) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: fl_vertex.cxx,v 1.5.2.3.2.5 2002/01/01 15:11:32 easysw Exp $".
|
// End of "$Id: fl_vertex.cxx,v 1.5.2.3.2.6 2003/01/14 23:48:01 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue