[Scummvm-git-logs] scummvm master -> 6fa431a5fc16263923c05ca57e3d101d64642784
rsn8887
rsn8887 at users.noreply.github.com
Wed Apr 15 18:43:46 UTC 2020
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
bff75784a6 SWITCH: Explicitly zero-initialize structs used for touch controls
6fa431a5fc PSP2: Explicitly zero-initialize structs used in touch controls
Commit: bff75784a65c9e40500a6afd7a14bac3e478a660
https://github.com/scummvm/scummvm/commit/bff75784a65c9e40500a6afd7a14bac3e478a660
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2020-04-15T13:42:05-05:00
Commit Message:
SWITCH: Explicitly zero-initialize structs used for touch controls
Changed paths:
backends/events/switchsdl/switchsdl-events.h
diff --git a/backends/events/switchsdl/switchsdl-events.h b/backends/events/switchsdl/switchsdl-events.h
index 8aa41b2301..b56f7a52d6 100644
--- a/backends/events/switchsdl/switchsdl-events.h
+++ b/backends/events/switchsdl/switchsdl-events.h
@@ -57,7 +57,7 @@ private:
float lastDownY; // SDL touch coordinates when last pressed down
} Touch;
- Touch _finger[SCE_TOUCH_PORT_MAX_NUM][MAX_NUM_FINGERS]; // keep track of finger status
+ Touch _finger[SCE_TOUCH_PORT_MAX_NUM][MAX_NUM_FINGERS] = {0}; // keep track of finger status
typedef enum DraggingType {
DRAG_NONE = 0,
@@ -65,9 +65,9 @@ private:
DRAG_THREE_FINGER,
} DraggingType;
- DraggingType _multiFingerDragging[SCE_TOUCH_PORT_MAX_NUM]; // keep track whether we are currently drag-and-dropping
+ DraggingType _multiFingerDragging[SCE_TOUCH_PORT_MAX_NUM] = {0}; // keep track whether we are currently drag-and-dropping
- unsigned int _simulatedClickStartTime[SCE_TOUCH_PORT_MAX_NUM][2]; // initiation time of last simulated left or right click (zero if no click)
+ unsigned int _simulatedClickStartTime[SCE_TOUCH_PORT_MAX_NUM][2] = {0}; // initiation time of last simulated left or right click (zero if no click)
void preprocessFingerDown(SDL_Event *event);
void preprocessFingerUp(SDL_Event *event);
Commit: 6fa431a5fc16263923c05ca57e3d101d64642784
https://github.com/scummvm/scummvm/commit/6fa431a5fc16263923c05ca57e3d101d64642784
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2020-04-15T13:43:15-05:00
Commit Message:
PSP2: Explicitly zero-initialize structs used in touch controls
Changed paths:
backends/events/psp2sdl/psp2sdl-events.h
diff --git a/backends/events/psp2sdl/psp2sdl-events.h b/backends/events/psp2sdl/psp2sdl-events.h
index 11e97ec5b9..b5a8498c36 100644
--- a/backends/events/psp2sdl/psp2sdl-events.h
+++ b/backends/events/psp2sdl/psp2sdl-events.h
@@ -54,7 +54,7 @@ private:
float lastDownY; // SDL touch coordinates when last pressed down
} Touch;
- Touch _finger[SCE_TOUCH_PORT_MAX_NUM][MAX_NUM_FINGERS]; // keep track of finger status
+ Touch _finger[SCE_TOUCH_PORT_MAX_NUM][MAX_NUM_FINGERS] = {0}; // keep track of finger status
typedef enum DraggingType {
DRAG_NONE = 0,
@@ -62,9 +62,9 @@ private:
DRAG_THREE_FINGER,
} DraggingType;
- DraggingType _multiFingerDragging[SCE_TOUCH_PORT_MAX_NUM]; // keep track whether we are currently drag-and-dropping
+ DraggingType _multiFingerDragging[SCE_TOUCH_PORT_MAX_NUM] = {0}; // keep track whether we are currently drag-and-dropping
- unsigned int _simulatedClickStartTime[SCE_TOUCH_PORT_MAX_NUM][2]; // initiation time of last simulated left or right click (zero if no click)
+ unsigned int _simulatedClickStartTime[SCE_TOUCH_PORT_MAX_NUM][2] = {0}; // initiation time of last simulated left or right click (zero if no click)
int _hiresDX; // keep track of slow, sub-pixel, finger motion across multiple frames
int _hiresDY;
More information about the Scummvm-git-logs
mailing list