mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 17:16:44 +00:00
Having learnt a bit more: eliminates Metal attribute tags, switches to more natural expression of structs.
Also thereby eliminates the need for a forced alignas(4) on various structs.
This commit is contained in:
@@ -210,11 +210,9 @@ struct ScanTarget {
|
||||
|
||||
/*!
|
||||
Defines a scan in terms of its two endpoints.
|
||||
|
||||
Is guaranteed to be a multiple of four bytes in size.
|
||||
*/
|
||||
struct alignas(4) Scan {
|
||||
struct alignas(4) EndPoint {
|
||||
struct Scan {
|
||||
struct EndPoint {
|
||||
/// Provide the coordinate of this endpoint. These are fixed point, purely fractional
|
||||
/// numbers, relative to the scale provided in the Modals.
|
||||
uint16_t x, y;
|
||||
|
||||
Reference in New Issue
Block a user