* Fixed some more style violations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40115 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
* Geoffry Song, [email protected]
|
* Geoffry Song, [email protected]
|
||||||
* Ryan Leavengood, [email protected]
|
* Ryan Leavengood, [email protected]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "Butterfly.h"
|
#include "Butterfly.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@@ -24,8 +26,12 @@ instantiate_screen_saver(BMessage* archive, image_id imageId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
Butterfly::Butterfly(BMessage* archive, image_id imageId)
|
Butterfly::Butterfly(BMessage* archive, image_id imageId)
|
||||||
: BScreenSaver(archive, imageId)
|
:
|
||||||
|
BScreenSaver(archive, imageId)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,7 +114,7 @@ Butterfly::Draw(BView* view, int32 frame)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// convert from a hue in degrees to a fully saturated color
|
//! Convert from a hue in degrees to a fully saturated color
|
||||||
inline rgb_color
|
inline rgb_color
|
||||||
Butterfly::_HueToColor(float hue)
|
Butterfly::_HueToColor(float hue)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,12 +14,16 @@
|
|||||||
|
|
||||||
class Butterfly : public BScreenSaver {
|
class Butterfly : public BScreenSaver {
|
||||||
public:
|
public:
|
||||||
Butterfly(BMessage* archive, image_id imageId);
|
Butterfly(BMessage* archive, image_id imageID);
|
||||||
|
|
||||||
virtual void StartConfig(BView* view);
|
virtual void StartConfig(BView* view);
|
||||||
virtual status_t StartSaver(BView* view, bool preview);
|
virtual status_t StartSaver(BView* view, bool preview);
|
||||||
virtual void Draw(BView* view, int32 frame);
|
virtual void Draw(BView* view, int32 frame);
|
||||||
|
|
||||||
|
private:
|
||||||
|
inline rgb_color _HueToColor(float hue);
|
||||||
|
inline BPoint _Iterate();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// base value for calculating the curves on each iteration
|
// base value for calculating the curves on each iteration
|
||||||
float fBase;
|
float fBase;
|
||||||
@@ -30,10 +34,7 @@ private:
|
|||||||
BPoint fTrans;
|
BPoint fTrans;
|
||||||
// bounding box of drawn figure
|
// bounding box of drawn figure
|
||||||
BRect fBounds;
|
BRect fBounds;
|
||||||
|
|
||||||
inline rgb_color _HueToColor(float hue);
|
|
||||||
inline BPoint _Iterate();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _BUTTERFLY_H_
|
|
||||||
|
|
||||||
|
#endif // _BUTTERFLY_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user