From bf83a7cf3c74b0843cc1f953d507dc83832cf2a7 Mon Sep 17 00:00:00 2001 From: Justin Scofield Date: Sun, 12 Jun 2022 18:42:21 -0400 Subject: [PATCH] includes are accurate and formatted --- src/Application/Core/Window.cc | 20 ++++++++++---------- src/Application/Core/Window.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Application/Core/Window.cc b/src/Application/Core/Window.cc index f4ee0d1c..73e68dbc 100644 --- a/src/Application/Core/Window.cc +++ b/src/Application/Core/Window.cc @@ -1,27 +1,27 @@ #include "Window.h" +#include + namespace yaze { namespace Application { namespace Core { -// TODO: pass in the size of the window as argument +// TODO: pass in the size of the window as argument void Window::Create() { if (SDL_Init(SDL_INIT_EVERYTHING)) { SDL_Log("SDL_Init: %s\n", SDL_GetError()); } else { window = SDL_CreateWindow("Yet Another Zelda3 Editor", // window title - SDL_WINDOWPOS_UNDEFINED, // initial x position - SDL_WINDOWPOS_UNDEFINED, // initial y position - 1200, // width, in pixels - 800, // height, in pixels - SDL_WINDOW_RESIZABLE // window flags - ); + SDL_WINDOWPOS_UNDEFINED, // initial x position + SDL_WINDOWPOS_UNDEFINED, // initial y position + 1200, // width, in pixels + 800, // height, in pixels + SDL_WINDOW_RESIZABLE // window flags + ); } } -SDL_Window* Window::Get() { - return window; -} +SDL_Window* Window::Get() { return window; } void Window::Destroy() { SDL_DestroyWindow(window); diff --git a/src/Application/Core/Window.h b/src/Application/Core/Window.h index 16f46966..3bc9d7c0 100644 --- a/src/Application/Core/Window.h +++ b/src/Application/Core/Window.h @@ -10,8 +10,8 @@ namespace Core { class Window { public: void Create(); - SDL_Window* Get(); void Destroy(); + SDL_Window* Get(); private: SDL_Window* window = nullptr;