From 7e51e2dea6009c23d587003a8566744ad8b45b75 Mon Sep 17 00:00:00 2001 From: Gregor Parzefall Date: Sat, 24 Jun 2023 16:22:25 +0200 Subject: [PATCH] Fix compiler error on MSVC with ENABLE_TOUCH=TRUE --- src/gui/touchscreengui.cpp | 4 ++-- src/gui/touchscreengui.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/touchscreengui.cpp b/src/gui/touchscreengui.cpp index 531b7708e..7d706b927 100644 --- a/src/gui/touchscreengui.cpp +++ b/src/gui/touchscreengui.cpp @@ -35,14 +35,14 @@ with this program; if not, write to the Free Software Foundation, Inc., using namespace irr::core; -const char **button_imagenames = (const char *[]) { +const char *button_imagenames[] = { "jump_btn.png", "down.png", "zoom.png", "aux1_btn.png" }; -const char **joystick_imagenames = (const char *[]) { +const char *joystick_imagenames[] = { "joystick_off.png", "joystick_bg.png", "joystick_center.png" diff --git a/src/gui/touchscreengui.h b/src/gui/touchscreengui.h index b91aca9dd..396cc6836 100644 --- a/src/gui/touchscreengui.h +++ b/src/gui/touchscreengui.h @@ -85,8 +85,8 @@ typedef enum // Very slow button repeat frequency #define SLOW_BUTTON_REPEAT 1.0f -extern const char **button_imagenames; -extern const char **joystick_imagenames; +extern const char *button_imagenames[]; +extern const char *joystick_imagenames[]; struct button_info {