Skip to content

Commit

Permalink
Fix compile error when using f32 PixelType
Browse files Browse the repository at this point in the history
  • Loading branch information
kdchambers committed Jul 18, 2023
1 parent 6922a3d commit a2d29d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/freetype_harfbuzz.zig
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn PenConfigInternal(comptime options: api.PenConfigOptionsInternal) type {
texture_pixels[index].r = 0.8;
texture_pixels[index].g = 0.8;
texture_pixels[index].b = 0.8;
texture_pixels[index].a = value;
texture_pixels[index].a = @as(f32, @floatFromInt(value)) / 255.0;
},
else => unreachable,
}
Expand Down

0 comments on commit a2d29d0

Please sign in to comment.