From 2032daa62db8c2c70ab36ee14f0f4e87c2a68278 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Tue, 4 Oct 2022 17:55:15 -0300 Subject: buil Use SDL_MAIN_HANDLED to compile engine on Windows --- src/core.hpp | 2 ++ src/pgm_image.hpp | 8 ++++---- src/sprite_implementation.cpp | 1 + src/sprite_implementation.hpp | 2 +- src/vk/texture.cpp | 3 --- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core.hpp b/src/core.hpp index c4e9a6c..7d1d62f 100644 --- a/src/core.hpp +++ b/src/core.hpp @@ -33,6 +33,8 @@ #include #include +#define SDL_MAIN_HANDLED + #include #include #include diff --git a/src/pgm_image.hpp b/src/pgm_image.hpp index ef9607d..bda73ca 100644 --- a/src/pgm_image.hpp +++ b/src/pgm_image.hpp @@ -17,8 +17,6 @@ #ifndef CANDY_GEAR_PGM_IMAGE_H #define CANDY_GEAR_PGM_IMAGE_H 1 -#include - struct PGMImage_s { int width, height, max_value, data_size; @@ -28,7 +26,9 @@ struct PGMImage_s typedef struct PGMImage_s PGMImage; -bool PGMImage_constructor(PGMImage *self, const char *file_path); -void PGMImage_destructor(PGMImage *self); +bool +PGMImage_constructor(PGMImage *self, const char *file_path); +void +PGMImage_destructor(PGMImage *self); #endif /* CANDY_GEAR_PGM_IMAGE_H */ diff --git a/src/sprite_implementation.cpp b/src/sprite_implementation.cpp index 099fa35..caa56a2 100644 --- a/src/sprite_implementation.cpp +++ b/src/sprite_implementation.cpp @@ -16,6 +16,7 @@ #include "sprite_implementation.hpp" +#include #include #include diff --git a/src/sprite_implementation.hpp b/src/sprite_implementation.hpp index bd3e954..d679272 100644 --- a/src/sprite_implementation.hpp +++ b/src/sprite_implementation.hpp @@ -17,7 +17,7 @@ #ifndef CANDY_GEAR_SPRITE_IMPLEMENTATION_H #define CANDY_GEAR_SPRITE_IMPLEMENTATION_H 1 -#include +#include struct cg_Sprite_s { diff --git a/src/vk/texture.cpp b/src/vk/texture.cpp index ae35035..54cf801 100644 --- a/src/vk/texture.cpp +++ b/src/vk/texture.cpp @@ -16,9 +16,6 @@ #include "texture.hpp" -#include -#include - #include "../command.hpp" #include "../core.hpp" #include "image.hpp" -- cgit v1.2.3