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.
This commit is contained in:
John Scipione 2016-03-12 18:59:14 -08:00
parent 3108c9bed0
commit 8db20d05cb
2 changed files with 5 additions and 6 deletions

View File

@ -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
*/

View File

@ -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);
}