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 19:10:38 -08:00
parent 3108c9bed0
commit 8db20d05cb
2 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -119,7 +119,7 @@ colorControl->SetValue(0x336698);
/*! /*!
\fn BColorControl::BColorControl(BPoint leftTop, \fn BColorControl::BColorControl(BPoint leftTop,
color_control_layout layout, float cellSize, const char *name, 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. \brief Constructs a new color control object.
\param leftTop location of the left top corner of the frame rectangle \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 name The name of the color control.
\param message The optional \a message to send to a target in response \param message The optional \a message to send to a target in response
to a change in color value. 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 made to an off-screen bitmap and then copied to the screen
making the drawing smoother, but requiring more memory making the drawing smoother, but requiring more memory.
(currently unused).
\since BeOS R3 \since BeOS R3
*/ */
+2 -2
View File
@@ -49,12 +49,12 @@ static const uint32 kRampCount = 4;
BColorControl::BColorControl(BPoint leftTop, color_control_layout layout, 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, BControl(BRect(leftTop, leftTop), name, NULL, message,
B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE) B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW | B_NAVIGABLE)
{ {
_InitData(layout, cellSize, bufferedDrawing, NULL); _InitData(layout, cellSize, useOffscreen, NULL);
} }