diff --git a/src/apps/mandelbrot/Mandelbrot.cpp b/src/apps/mandelbrot/Mandelbrot.cpp index 954cd4d431..aaa0220cde 100644 --- a/src/apps/mandelbrot/Mandelbrot.cpp +++ b/src/apps/mandelbrot/Mandelbrot.cpp @@ -29,7 +29,7 @@ class TMainWindow : public BWindow { public: - TMainWindow(BRect bound, char* name, window_type type, + TMainWindow(BRect bound, const char* name, window_type type, long flags); virtual ~TMainWindow(); @@ -44,7 +44,8 @@ class TMainWindow : public BWindow { }; -TMainWindow::TMainWindow(BRect bound, char* name, window_type type, long flags) +TMainWindow::TMainWindow(BRect bound, const char* name, window_type type, + long flags) : BWindow(bound, name, type, flags) { BMenuBar* menuBar = new BMenuBar(BRect(0, 0, 1000, 15), "MB"); diff --git a/src/apps/mandelbrot/tsb.cpp b/src/apps/mandelbrot/tsb.cpp index 51aa8e814d..c77b9a8f93 100644 --- a/src/apps/mandelbrot/tsb.cpp +++ b/src/apps/mandelbrot/tsb.cpp @@ -94,7 +94,7 @@ void TShowBit::set_iter(long it) void TShowBit::set_palette(long code) { - rgb_color c; + rgb_color c = {0, 0, 0, 255}; long i; BScreen screen( Window() ); @@ -327,7 +327,7 @@ void TShowBit::mandb(double vx, double vy, double sx, double sy) long x, y; long bx; double cx, cy; - char v; + int v; uchar *bits = (uchar *)the_bitmap->Bits(); uchar *b0; long y12; @@ -390,7 +390,7 @@ void TShowBit::manda(double vx, double vy, double sx, double sy) long x, y; long bx; double cx, cy; - char v; + int v; uchar *bits = (uchar *)the_bitmap->Bits(); uchar *b0; long y12;