Skip to content

[BUG] sk_ipoint_t and sk_isize_t should use integer members #991

@ngocdaothanh

Description

@ngocdaothanh

See: https://github.com/mono/skia/blob/xamarin-mobile-bindings/include/c/sk_types.h

Current code:

typedef struct {
    float   x;
    float   y;
} sk_ipoint_t;

typedef struct {
    float   w;
    float   h;
} sk_isize_t;

typedef struct {
    int32_t left;
    int32_t top;
    int32_t right;
    int32_t bottom;
} sk_irect_t;

Coincidentally, the size of float is 32.
But for correctness, sk_ipoint_t and sk_isize_t should use int32_t.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions