freetype: increase LoadFlags max size
This commit is contained in:
parent
c02a3fbaf4
commit
1c6e796df6
1 changed files with 3 additions and 3 deletions
|
|
@ -126,12 +126,12 @@ pub const LoadFlags = packed struct {
|
|||
color = c.FT_LOAD_COLOR,
|
||||
};
|
||||
|
||||
pub fn from(bits: u21) LoadFlags {
|
||||
pub fn from(bits: u24) LoadFlags {
|
||||
return utils.bitFieldsToStruct(LoadFlags, Flag, bits);
|
||||
}
|
||||
|
||||
pub fn cast(self: LoadFlags) u21 {
|
||||
return utils.structToBitFields(u21, Flag, self);
|
||||
pub fn cast(self: LoadFlags) u24 {
|
||||
return utils.structToBitFields(u24, Flag, self);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue