From 8db20d05cb0b8025d8c88cab606a9a74e5fb6a4a Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sat, 12 Mar 2016 18:59:14 -0800 Subject: [PATCH] BColorControl: Standardize on useOffscreen ...instead of doubleBuffered for the flag that specifies whether or not to draw using an offscreen buffer. Also remove the (not currently used) text from the docs since the parameter is being used. --- docs/user/interface/ColorControl.dox | 7 +++---- src/kits/interface/ColorControl.cpp | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/user/interface/ColorControl.dox b/docs/user/interface/ColorControl.dox index 8352db1316..0d7281f0b8 100644 --- a/docs/user/interface/ColorControl.dox +++ b/docs/user/interface/ColorControl.dox @@ -119,7 +119,7 @@ colorControl->SetValue(0x336698); /*! \fn BColorControl::BColorControl(BPoint leftTop, color_control_layout layout, float cellSize, const char *name, - BMessage *message = NULL, bool bufferedDrawing = false) + BMessage *message = NULL, bool useOffscreen = false) \brief Constructs a new color control object. \param leftTop location of the left top corner of the frame rectangle @@ -136,10 +136,9 @@ colorControl->SetValue(0x336698); \param name The name of the color control. \param message The optional \a message to send to a target in response to a change in color value. - \param bufferedDrawing If \c true, all on-screen changes are first + \param useOffscreen If \c true, all on-screen changes are first made to an off-screen bitmap and then copied to the screen - making the drawing smoother, but requiring more memory - (currently unused). + making the drawing smoother, but requiring more memory. \since BeOS R3 */ diff --git a/src/kits/interface/ColorControl.cpp b/src/kits/interface/ColorControl.cpp index 0379cd5d0c..59d4cee6d4 100644 --- a/src/kits/interface/ColorControl.cpp +++ b/src/kits/interface/ColorControl.cpp @@ -49,12 +49,12 @@ static const uint32 kRampCount = 4; BColorControl::BColorControl(BPoint leftTop, color_control_layout layout, - float cellSize, const char* name, BMessage* message, bool bufferedDrawing) + float cellSize, const char* name, BMessage* message, bool useOffscreen) : BControl(BRect(leftTop, leftTop), name, NULL, message, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE) { - _InitData(layout, cellSize, bufferedDrawing, NULL); + _InitData(layout, cellSize, useOffscreen, NULL); }