[Scummvm-git-logs] scummvm master -> 206998e06a23d03b4cf046802e1060fb996f0db6
bluegr
noreply at scummvm.org
Thu Feb 12 14:33:06 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
206998e06a JANITORIAL: M4: add missing constructors to Buffer struct
Commit: 206998e06a23d03b4cf046802e1060fb996f0db6
https://github.com/scummvm/scummvm/commit/206998e06a23d03b4cf046802e1060fb996f0db6
Author: Michael Kuerbis (michael_kuerbis at web.de)
Date: 2026-02-12T16:33:01+02:00
Commit Message:
JANITORIAL: M4: add missing constructors to Buffer struct
Changed paths:
engines/m4/m4_types.h
diff --git a/engines/m4/m4_types.h b/engines/m4/m4_types.h
index f3eacbe7182..ca1ca4b69fa 100644
--- a/engines/m4/m4_types.h
+++ b/engines/m4/m4_types.h
@@ -58,6 +58,11 @@ struct Buffer {
uint8 encoding;
int32 stride;
+ constexpr Buffer() = default;
+ constexpr Buffer(int32 w, int32 h, uint8 *data, uint8 encoding, int32 stride)
+ : w(w), h(h), data(data), encoding(encoding), stride(stride)
+ {}
+
uint8 *getBasePtr(int x, int y) {
return data + y * w + x;
}
More information about the Scummvm-git-logs
mailing list