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
commit9eee43d3bb24000077602a62dfdfeee2606f1589 (patch)
tree0e5f8efef62b068e252fe9c98c14fec723e0a7a3 /src/gfx
parent18717569acda82b26099c62410df3b398d596ba1 (diff)
downloadrts-9eee43d3bb24000077602a62dfdfeee2606f1589.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