diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-04-13 19:07:40 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-04-13 19:07:40 +0000 |
| commit | b8a8c98f04c752e69c17f2709c7496489b839611 (patch) | |
| tree | 3eae855f2e104e207ecd36650ad9963a1c5f8ff4 /test/mandelbrot.cxx | |
| parent | bb86f132ebc530f9d06d441f7d13675efcef1322 (diff) | |
Eliminate all compiler warnings (string constants, const'ness, hiding of
class members, empty fl_call_main.c)
Update pixmap functions to accept const * const * or * const * pointers.
(confused? :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/mandelbrot.cxx')
| -rw-r--r-- | test/mandelbrot.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/mandelbrot.cxx b/test/mandelbrot.cxx index e2ea87f43..67c866818 100644 --- a/test/mandelbrot.cxx +++ b/test/mandelbrot.cxx @@ -1,5 +1,5 @@ // -// "$Id: mandelbrot.cxx,v 1.8.2.3 2001/01/22 15:13:41 easysw Exp $" +// "$Id: mandelbrot.cxx,v 1.8.2.4 2001/04/13 19:07:40 easysw Exp $" // // Mandelbrot set demo for the Fast Light Tool Kit (FLTK). // @@ -171,9 +171,9 @@ int Drawing_Area::handle(int event) { } jbrot.d->jX = X + (ix-x()-W/2)*scale/W; jbrot.d->jY = Y + (H/2-iy+y())*scale/W; - static char buffer[128]; - sprintf(buffer, "Julia %.7f %.7f",jbrot.d->jX,jbrot.d->jY); - jbrot.window->label(buffer); + static char s[128]; + sprintf(s, "Julia %.7f %.7f",jbrot.d->jX,jbrot.d->jY); + jbrot.window->label(s); jbrot.window->show(); jbrot.d->new_display(); } @@ -187,15 +187,15 @@ void Drawing_Area::new_display() { set_idle(); } -void Drawing_Area::resize(int X,int Y,int W,int H) { - if (W != w() || H != h()) { - this->W = W-6; - this->H = H-8; +void Drawing_Area::resize(int XX,int YY,int WW,int HH) { + if (WW != w() || HH != h()) { + W = WW-6; + H = HH-8; if (buffer) {delete[] buffer; buffer = 0; new_display();} } - Fl_Box::resize(X,Y,W,H); + Fl_Box::resize(XX,YY,WW,HH); } // -// End of "$Id: mandelbrot.cxx,v 1.8.2.3 2001/01/22 15:13:41 easysw Exp $". +// End of "$Id: mandelbrot.cxx,v 1.8.2.4 2001/04/13 19:07:40 easysw Exp $". // |
