diff options
| author | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
| commit | f8db8a3faa30b71dca33ced38be16d3f93f43e8a (patch) | |
| tree | 3b798318132cca7eccfbca5818ab55656a2896d7 /main/tests/test_image.cpp | |
| parent | 1d418afe863c9e553b69174ce63aef203c46d2f0 (diff) | |
| download | godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.gz godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.zst godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.zip | |
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6e3e905b94b8764e99491e608122261.
Diffstat (limited to 'main/tests/test_image.cpp')
| -rw-r--r-- | main/tests/test_image.cpp | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/main/tests/test_image.cpp b/main/tests/test_image.cpp index bf9851cf0..5ed210bc9 100644 --- a/main/tests/test_image.cpp +++ b/main/tests/test_image.cpp @@ -27,25 +27,23 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #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) { @@ -57,21 +55,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); } - } |
