aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/multiple/SDL/gdisp_lld_SDL.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-06-23 13:02:07 +1000
committerinmarket <andrewh@inmarket.com.au>2018-06-23 13:02:07 +1000
commit41271d632b74f5cf47c30d3b699eb6b2786f2136 (patch)
tree78bcb729c6d6177ca598f28908fefd186c50e9b6 /drivers/multiple/SDL/gdisp_lld_SDL.c
parent3b97fb798e96514057bcf17263c1e5dbdcd7da26 (diff)
downloaduGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.gz
uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.tar.bz2
uGFX-41271d632b74f5cf47c30d3b699eb6b2786f2136.zip
Added new type definitions - moving towards V3.0
Diffstat (limited to 'drivers/multiple/SDL/gdisp_lld_SDL.c')
-rw-r--r--drivers/multiple/SDL/gdisp_lld_SDL.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/multiple/SDL/gdisp_lld_SDL.c b/drivers/multiple/SDL/gdisp_lld_SDL.c
index 5e2661a3..3ea2168f 100644
--- a/drivers/multiple/SDL/gdisp_lld_SDL.c
+++ b/drivers/multiple/SDL/gdisp_lld_SDL.c
@@ -40,8 +40,8 @@
#include "../../../src/ginput/ginput_driver_mouse.h"
// Forward definitions
- static bool_t SDL_MouseInit(GMouse *m, unsigned driverinstance);
- static bool_t SDL_MouseRead(GMouse *m, GMouseReading *prd);
+ static gBool SDL_MouseInit(GMouse *m, unsigned driverinstance);
+ static gBool SDL_MouseRead(GMouse *m, GMouseReading *prd);
const GMouseVMT GMOUSE_DRIVER_VMT[1] = {{
{
GDRIVER_TYPE_MOUSE,
@@ -78,7 +78,7 @@
#include "../../../src/ginput/ginput_driver_keyboard.h"
// Forward definitions
- static bool_t SDL_KeyboardInit(GKeyboard *k, unsigned driverinstance);
+ static gBool SDL_KeyboardInit(GKeyboard *k, unsigned driverinstance);
static int SDL_KeyboardGetData(GKeyboard *k, uint8_t *pch, int sz);
const GKeyboardVMT GKEYBOARD_DRIVER_VMT[1] = {{
@@ -366,7 +366,7 @@ void sdl_driver_init (void) {
}
-LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
+LLDSPEC gBool gdisp_lld_init(GDisplay *g) {
g->board = 0; // No board interface for this driver
#if GINPUT_NEED_MOUSE
@@ -380,7 +380,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
g->g.Width = GDISP_SCREEN_WIDTH;
g->g.Height = GDISP_SCREEN_HEIGHT;
- return TRUE;
+ return gTrue;
}
@@ -433,29 +433,29 @@ LLDSPEC void gdisp_lld_draw_pixel(GDisplay *g)
#endif
#if GINPUT_NEED_MOUSE
- static bool_t SDL_MouseInit(GMouse *m, unsigned driverinstance) {
+ static gBool SDL_MouseInit(GMouse *m, unsigned driverinstance) {
mouse = m;
(void) driverinstance;
- return TRUE;
+ return gTrue;
}
- static bool_t SDL_MouseRead(GMouse *m, GMouseReading *pt) {
+ static gBool SDL_MouseRead(GMouse *m, GMouseReading *pt) {
(void) m;
if (!context)
- return FALSE;
+ return gFalse;
pt->x = context->mousex;
pt->y = context->mousey;
pt->z = (context->buttons & GINPUT_MOUSE_BTN_LEFT) ? 1 : 0;
pt->buttons = context->buttons;
- return TRUE;
+ return gTrue;
}
#endif /* GINPUT_NEED_MOUSE */
#if GINPUT_NEED_KEYBOARD
- static bool_t SDL_KeyboardInit(GKeyboard *k, unsigned driverinstance) {
+ static gBool SDL_KeyboardInit(GKeyboard *k, unsigned driverinstance) {
keyboard = k;
(void) driverinstance;
- return TRUE;
+ return gTrue;
}
static int SDL_KeyboardGetData(GKeyboard *k, uint8_t *pch, int sz) {