Now has a handy constant for the window cascade amount in pixel. Set that
one to 20 (instead of 15) which fits DiskProbe's value. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6552 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
static const char *kSignature = "application/x-vnd.OpenBeOS-DiskProbe";
|
||||
|
||||
static const uint32 kCascadeOffset = 20;
|
||||
|
||||
|
||||
class DiskProbe : public BApplication {
|
||||
public:
|
||||
@@ -243,7 +245,7 @@ DiskProbe::Probe(entry_ref &ref)
|
||||
|
||||
// cascade window
|
||||
BRect rect = fWindowPosition;
|
||||
rect.OffsetBy(probeWindows * 15, probeWindows * 15);
|
||||
rect.OffsetBy(probeWindows * kCascadeOffset, probeWindows * kCascadeOffset);
|
||||
|
||||
BWindow *window = new ProbeWindow(rect, &ref);
|
||||
window->Show();
|
||||
|
||||
Reference in New Issue
Block a user