diff --git a/src/tests/servers/app/benchmark/Benchmark.cpp b/src/tests/servers/app/benchmark/Benchmark.cpp index d8acab3ff3..ed68f49e34 100644 --- a/src/tests/servers/app/benchmark/Benchmark.cpp +++ b/src/tests/servers/app/benchmark/Benchmark.cpp @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #include #include @@ -15,9 +16,9 @@ class Benchmark : public BApplication { public: Benchmark() - : BApplication("application/x-vnd.haiku-benchmark") - , fTest(new StringTest) - , fTestWindow(NULL) + : BApplication("application/x-vnd.haiku-benchmark"), + fTest(new StringTest), + fTestWindow(NULL) { } @@ -37,7 +38,7 @@ public: frame.right = frame.left + width - 1; frame.bottom = frame.top + height - 1; - fTestWindow = new TestWindow(frame, fTest, B_OP_OVER, + fTestWindow = new TestWindow(frame, fTest, B_OP_COPY, BMessenger(this)); } diff --git a/src/tests/servers/app/benchmark/StringTest.cpp b/src/tests/servers/app/benchmark/StringTest.cpp index 309d3f683e..a5dba46bcf 100644 --- a/src/tests/servers/app/benchmark/StringTest.cpp +++ b/src/tests/servers/app/benchmark/StringTest.cpp @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #include "StringTest.h" #include @@ -13,16 +14,16 @@ StringTest::StringTest() - : Test() - , fTestDuration(0) - , fTestStart(-1) - , fGlyphsRendered(0) - , fGlyphsPerLine(500) - , fIterations(0) - , fMaxIterations(1500) + : Test(), + fTestDuration(0), + fTestStart(-1), + fGlyphsRendered(0), + fGlyphsPerLine(500), + fIterations(0), + fMaxIterations(1500), - , fStartHeight(11.0) - , fLineHeight(15.0) + fStartHeight(11.0), + fLineHeight(15.0) { } @@ -72,7 +73,7 @@ StringTest::RunIteration(BView* view) while (true) { // fill string with random chars for (uint32 j = 0; j < fGlyphsPerLine; j++) - buffer[j] = 'a' + rand() % ('Z' - 'a'); + buffer[j] = 'A' + rand() % ('z' - 'A'); view->DrawString(buffer, textLocation); diff --git a/src/tests/servers/app/benchmark/StringTest.h b/src/tests/servers/app/benchmark/StringTest.h index 062a7d5ada..5b5baec2ce 100644 --- a/src/tests/servers/app/benchmark/StringTest.h +++ b/src/tests/servers/app/benchmark/StringTest.h @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #ifndef STRING_TEST_H #define STRING_TEST_H diff --git a/src/tests/servers/app/benchmark/Test.cpp b/src/tests/servers/app/benchmark/Test.cpp index d64e405f2a..6e8d8fdd61 100644 --- a/src/tests/servers/app/benchmark/Test.cpp +++ b/src/tests/servers/app/benchmark/Test.cpp @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #include "Test.h" diff --git a/src/tests/servers/app/benchmark/Test.h b/src/tests/servers/app/benchmark/Test.h index 4e127f6e08..51a24488e7 100644 --- a/src/tests/servers/app/benchmark/Test.h +++ b/src/tests/servers/app/benchmark/Test.h @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #ifndef TEST_H #define TEST_H diff --git a/src/tests/servers/app/benchmark/TestSupport.h b/src/tests/servers/app/benchmark/TestSupport.h index c66e0bc278..0787540e01 100644 --- a/src/tests/servers/app/benchmark/TestSupport.h +++ b/src/tests/servers/app/benchmark/TestSupport.h @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #ifndef TEST_SUPPORT_H #define TEST_SUPPORT_H diff --git a/src/tests/servers/app/benchmark/TestWindow.cpp b/src/tests/servers/app/benchmark/TestWindow.cpp index d9836739cf..9abf13872d 100644 --- a/src/tests/servers/app/benchmark/TestWindow.cpp +++ b/src/tests/servers/app/benchmark/TestWindow.cpp @@ -9,9 +9,9 @@ TestView::TestView(BRect frame, Test* test, drawing_mode mode, const BMessenger& target) - : BView(frame, "test view", B_FOLLOW_ALL, B_WILL_DRAW) - , fTest(test) - , fTarget(target) + : BView(frame, "test view", B_FOLLOW_ALL, B_WILL_DRAW), + fTest(test), + fTarget(target) { SetDrawingMode(mode); fTest->Prepare(this); @@ -33,9 +33,9 @@ TestView::Draw(BRect updateRect) TestWindow::TestWindow(BRect frame, Test* test, drawing_mode mode, const BMessenger& target) : BWindow(frame, "Test Window", B_TITLED_WINDOW_LOOK, - B_FLOATING_ALL_WINDOW_FEEL, B_NOT_ZOOMABLE | B_NOT_RESIZABLE) - , fTarget(target) - , fAllowedToQuit(false) + B_FLOATING_ALL_WINDOW_FEEL, B_NOT_ZOOMABLE | B_NOT_RESIZABLE), + fTarget(target), + fAllowedToQuit(false) { TestView* view = new TestView(Bounds(), test, mode, target); AddChild(view); diff --git a/src/tests/servers/app/benchmark/TestWindow.h b/src/tests/servers/app/benchmark/TestWindow.h index c4f76ef86e..1167110640 100644 --- a/src/tests/servers/app/benchmark/TestWindow.h +++ b/src/tests/servers/app/benchmark/TestWindow.h @@ -2,6 +2,7 @@ * Copyright (C) 2008 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT license. */ + #ifndef TEST_WINDOW_H #define TEST_WINDOW_H