summaryrefslogtreecommitdiff
path: root/main/tests/test_image.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-05 16:44:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-05 16:44:50 +0100
commit5dbf1809c6e3e905b94b8764e99491e608122261 (patch)
tree5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /main/tests/test_image.cpp
parent45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff)
A Whole New World (clang-format edition)
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
Diffstat (limited to 'main/tests/test_image.cpp')
-rw-r--r--main/tests/test_image.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/main/tests/test_image.cpp b/main/tests/test_image.cpp
index dbe0111367..c57968ad10 100644
--- a/main/tests/test_image.cpp
+++ b/main/tests/test_image.cpp
@@ -28,26 +28,24 @@
/*************************************************************************/
#include "test_image.h"
-#include "os/main_loop.h"
+#include "io/image_loader.h"
#include "math_funcs.h"
+#include "os/main_loop.h"
#include "print_string.h"
-#include "io/image_loader.h"
namespace TestImage {
-
class TestMainLoop : public MainLoop {
bool quit;
-public:
- virtual void input_event(const InputEvent& p_event) {
-
+public:
+ virtual void input_event(const InputEvent &p_event) {
}
virtual void init() {
- quit=false;
+ quit = false;
}
virtual bool iteration(float p_time) {
@@ -59,21 +57,16 @@ public:
}
virtual void finish() {
-
}
-
};
-
-MainLoop* test() {
+MainLoop *test() {
Image img;
- ImageLoader::load_image("as1.png",&img);
-
- img.resize(512,512);
+ ImageLoader::load_image("as1.png", &img);
- return memnew( TestMainLoop );
+ img.resize(512, 512);
+ return memnew(TestMainLoop);
}
-
}