Made it compile with GCC on Linux.

Fixed GCC warnings and Windows specifics.
Restored C++11, switch to 14 was not supposed to happen.
Not 100% sure about my Find* module section.
This commit is contained in:
Muzychenko Andrey committed 2021-09-09 11:40:54 +03:00
1 parent 2fe6d6d33a
commit 28e2417ef9
33 files changed
+523 -190

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@
#include "maths.h"
#include "zdrv.h"
enum class VisualType : char
enum class VisualTypes : char
{
None = 0,
Sprite = 1,
@@ -16,7 +16,7 @@ struct render_sprite_type_struct
gdrv_bitmap8* Bmp;
zmap_header_type* ZMap;
char UnknownFlag;
VisualType VisualType;
VisualTypes VisualType;
int16_t Depth;
rectangle_type BmpRectCopy;
int ZMapOffestY;
@@ -46,7 +46,7 @@ public:
static void update();
static void paint();
static void sprite_modified(render_sprite_type_struct* sprite);
static render_sprite_type_struct* create_sprite(VisualType visualType, gdrv_bitmap8* bmp,
static render_sprite_type_struct* create_sprite(VisualTypes visualType, gdrv_bitmap8* bmp,
zmap_header_type* zMap,
int xPosition, int yPosition, rectangle_type* rect);
static void remove_sprite(render_sprite_type_struct* sprite);