Skip to content

Commit

Permalink
make getDimensions2 consistent with getDimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjulek committed Apr 13, 2024
1 parent 2b68b1a commit e3c45f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zigapi.zig
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ pub const Frame = struct {
return .{ self.geWidth(plane), self.geHeight(plane), self.getStride(plane) };
}

pub fn getDimensions2(self: Self, plane: u32) struct { stride: u32, height: u32, width: u32 } {
pub fn getDimensions2(self: Self, plane: u32) struct { width: u32, height: u32, stride: u32 } {
return .{
.stride = self.getStride(plane),
.height = self.geHeight(plane),
.width = self.geWidth(plane),
.height = self.geHeight(plane),
.stride = self.getStride(plane),
};
}

Expand Down

0 comments on commit e3c45f3

Please sign in to comment.