Screensaver: Small style fixes to PreviewView

This commit is contained in:
John Scipione 2014-02-23 02:05:49 -05:00
parent 339e00cc32
commit ada2a0a1ef
2 changed files with 7 additions and 7 deletions

View File

@ -63,11 +63,11 @@ PreviewView::~PreviewView()
void
PreviewView::Draw(BRect update)
PreviewView::Draw(BRect updateRect)
{
SetHighColor(184, 184, 184);
FillRoundRect(scale2(0, 9, 0, 3, Bounds()), 4, 4);
// Outer shape
// outer shape
FillRoundRect(scale2(2, 7, 3, 6, Bounds()), 2, 2);
// control console outline
@ -75,7 +75,7 @@ PreviewView::Draw(BRect update)
StrokeRoundRect(scale2(2, 7, 3, 6, Bounds()), 2, 2);
// control console outline
StrokeRoundRect(scale2(0, 9, 0, 3, Bounds()), 4, 4);
// Outline outer shape
// outline outer shape
SetHighColor(0, 0, 0);
FillRect(scale2(1, 8, 1, 2, Bounds()));
@ -84,7 +84,7 @@ PreviewView::Draw(BRect update)
BRect outerShape = scale2(2, 7, 2, 6, Bounds());
outerShape.InsetBy(1, 1);
FillRoundRect(outerShape, 4, 4);
// Outer shape
// outer shape
SetHighColor(0, 255, 0);
FillRect(scale2(3, 4, 4, 5, Bounds()));

View File

@ -10,17 +10,17 @@
#define PREVIEW_VIEW_H
#include <View.h>
#include <Box.h>
#include <ScreenSaverRunner.h>
#include <View.h>
class PreviewView : public BView {
class PreviewView : public BView {
public:
PreviewView(const char* name);
virtual ~PreviewView();
virtual void Draw(BRect update);
virtual void Draw(BRect updateRect);
BView* AddPreview();
BView* RemovePreview();