aboutsummaryrefslogtreecommitdiff
path: root/src/gfx
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-02-24 17:55:57 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:20:21 +0200
commit8f8c5df4f2421f65050cb630a8413013a2dae23e (patch)
tree2c87337e00bca987cffdb131554b31d87893b227 /src/gfx
parent4765653cb3af905a9b20f1e5f2277e50d801c43b (diff)
downloadjancity-8f8c5df4f2421f65050cb630a8413013a2dae23e.tar.gz
Add support for keyboard and mouse
Diffstat (limited to 'src/gfx')
-rw-r--r--src/gfx/sdl-1.2/inc/gfx/port.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gfx/sdl-1.2/inc/gfx/port.h b/src/gfx/sdl-1.2/inc/gfx/port.h
index 3dbc23b..add8b8c 100644
--- a/src/gfx/sdl-1.2/inc/gfx/port.h
+++ b/src/gfx/sdl-1.2/inc/gfx/port.h
@@ -2,6 +2,7 @@
#define GFX_SDL_H
#include <SDL/SDL.h>
+#include <stdbool.h>
#ifdef __cplusplus
extern "C"
@@ -13,6 +14,7 @@ struct sprite
SDL_Surface *s;
short x, y, w, h;
unsigned char u, v;
+ bool transparent;
};
struct quad
@@ -22,6 +24,7 @@ struct quad
short y0, y1, y2, y3;
unsigned char u0, u1, u2, u3;
unsigned char v0, v1, v2, v3;
+ bool transparent;
SDL_Surface *s;
};
@@ -29,6 +32,7 @@ struct rect
{
unsigned char r, g, b;
short x, y, w, h;
+ bool stp;
};
struct stp_4line