From ae0d9fd60d431759d3cae09c9d730cce8f6d83f4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 17 Aug 2018 17:42:14 +0200 Subject: [PATCH] (Wayland) Buildfixes --- gfx/drivers_context/wayland_ctx.c | 20 ++++++++++++-------- input/drivers/wayland_input.c | 19 +++++++++---------- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 7778e6c280..cbd5418a7a 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -107,6 +107,7 @@ typedef struct gfx_ctx_wayland_data #endif } gfx_ctx_wayland_data_t; + static enum gfx_ctx_api wl_api = GFX_CTX_NONE; #ifndef EGL_OPENGL_ES3_BIT_KHR @@ -354,9 +355,10 @@ static void touch_handle_down(void *data, { int i; gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data; + if (num_active_touches < MAX_TOUCHES) { - for (i=0; icursor.default_cursor = wl_cursor_theme_get_cursor(wl->cursor.theme, "left_ptr"); num_active_touches = 0; - for (i=0;itouches[id].active = true; - } else - { wl->touches[id].active = false; - } - wl->touches[id].x = touch_x; - wl->touches[id].y = touch_y; + wl->touches[id].x = touch_x; + wl->touches[id].y = touch_y; } }