Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excise pixman, use z2d for sprite fonts, refactor box drawing, add new box characters #2439

Merged
merged 14 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/font/sprite/canvas.zig
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,12 @@ pub const Canvas = struct {
// ignore it, so that this method (and `rect` which uses it) have
// implicit bounds clipping.
},
else => {
std.log.err("Wtf? err={}", .{e});

error.InvalidHeight,
error.InvalidWidth,
error.InvalidPixelFormat,
=> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made these explicit instead of else so we can know if @vancluever or anyone else adds any new errors.

std.log.err("unexpected (considered impossible) error err={}", .{e});
unreachable; // This shouldn't be possible.
},
};
Expand Down
Loading