huge BSlider cleanup, it doesn't use an offscreen bitmap anymore by default (compile time switch), updated drawing for Haiku features and disabled look, work in progress
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12948 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,6 +54,7 @@ enum thumb_style {
|
||||
|
||||
// Globals ---------------------------------------------------------------------
|
||||
|
||||
#define USE_OFF_SCREEN_VIEW 0
|
||||
|
||||
// BSlider class ---------------------------------------------------------------
|
||||
class BSlider : public BControl {
|
||||
@@ -225,8 +226,10 @@ virtual void _ReservedSlider12();
|
||||
int32 fHashMarkCount;
|
||||
hash_mark_location fHashMarks;
|
||||
|
||||
#if USE_OFF_SCREEN_VIEW
|
||||
BBitmap* fOffScreenBits;
|
||||
BView* fOffScreenView;
|
||||
#endif
|
||||
|
||||
thumb_style fStyle;
|
||||
|
||||
@@ -236,7 +239,11 @@ virtual void _ReservedSlider12();
|
||||
orientation fOrientation;
|
||||
float fBarThickness;
|
||||
|
||||
#if USE_OFF_SCREEN_VIEW
|
||||
uint32 _reserved[8];
|
||||
#else
|
||||
uint32 _reserved[10];
|
||||
#endif
|
||||
};
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
+477
-333
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user