From edadb083bed259f01034cf7fe4bde75ff8970bb4 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 21 Jan 2008 20:31:12 +0000 Subject: [PATCH] Ah yeah, another interesting use of BView resizeMask and flags... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23693 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mandelbrot/Mandelbrot.cpp | 2 +- src/apps/mandelbrot/tsb.cpp | 4 ++-- src/apps/mandelbrot/tsb.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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);