diff --git a/src/apps/mandelbrot/Mandelbrot.cpp b/src/apps/mandelbrot/Mandelbrot.cpp index 63778c029a..1b1ed79ab6 100644 --- a/src/apps/mandelbrot/Mandelbrot.cpp +++ b/src/apps/mandelbrot/Mandelbrot.cpp @@ -81,7 +81,7 @@ TMainWindow::TMainWindow(BRect bound, char* name, window_type type, long flags) float barHeight = menuBar->Bounds().Height(); fView = new TShowBit(BRect(0, barHeight + 1, 188 - B_V_SCROLL_BAR_WIDTH, - 188 - B_H_SCROLL_BAR_HEIGHT), B_FOLLOW_ALL | B_WILL_DRAW); + 188 - B_H_SCROLL_BAR_HEIGHT), B_FOLLOW_ALL, B_WILL_DRAW); BScrollView *scrollView = new BScrollView("scroll view", fView, B_FOLLOW_ALL, B_WILL_DRAW, true, true, B_NO_BORDER); AddChild(scrollView); diff --git a/src/apps/mandelbrot/tsb.cpp b/src/apps/mandelbrot/tsb.cpp index d03973929d..0afea97ae9 100644 --- a/src/apps/mandelbrot/tsb.cpp +++ b/src/apps/mandelbrot/tsb.cpp @@ -134,8 +134,8 @@ void TShowBit::set_palette(long code) /*------------------------------------------------------------*/ -TShowBit::TShowBit(BRect r, long flags) : - BView(r, "", flags, B_WILL_DRAW | B_PULSE_NEEDED) +TShowBit::TShowBit(BRect r, uint32 resizeMask, uint32 flags) : + BView(r, "", resizeMask, flags | B_WILL_DRAW | B_PULSE_NEEDED) { BRect bitmap_r; char *bits; diff --git a/src/apps/mandelbrot/tsb.h b/src/apps/mandelbrot/tsb.h index b96536543c..66a2ae9b68 100644 --- a/src/apps/mandelbrot/tsb.h +++ b/src/apps/mandelbrot/tsb.h @@ -33,7 +33,7 @@ public: double scale; long iter; - TShowBit(BRect r, long flags); + TShowBit(BRect r, uint32 resizeMask, uint32 flags); virtual ~TShowBit(); virtual void Draw(BRect); virtual void MouseDown(BPoint where);