Compare commits
No commits in common. "24216e4ab434c3c8b7d10bb489115fb0968c4183" and "fe9e2bdf49c695b935e1f2c83d86c7803adee41d" have entirely different histories.
24216e4ab4
...
fe9e2bdf49
@ -113,10 +113,10 @@ fn void? Font.load(&font, String name, ZString path, uint height, float scale)
|
||||
font.atlas.new(font.id, ATLAS_GRAYSCALE, size, size)!;
|
||||
|
||||
// FIXME: this crashes with O1 or greater, why??
|
||||
// preallocate the ASCII range
|
||||
for (char c = ' '; c < '~'; c++) {
|
||||
font.get_glyph((Codepoint)c)!;
|
||||
}
|
||||
// // preallocate the ASCII range
|
||||
// for (char c = ' '; c < '~'; c++) {
|
||||
// font.get_glyph((Codepoint)c)!;
|
||||
// }
|
||||
}
|
||||
|
||||
fn Glyph*? Font.get_glyph(&font, Codepoint code)
|
||||
|
@ -1,16 +0,0 @@
|
||||
module ugui;
|
||||
|
||||
|
||||
macro Ctx.separator(&ctx, int width, int height, ...)
|
||||
=> ctx.separator_id(@compute_id($vasplat), width, height);
|
||||
fn void? Ctx.separator_id(&ctx, Id id, int width, int height)
|
||||
{
|
||||
id = ctx.gen_id(id)!;
|
||||
Elem *parent = ctx.get_parent()!;
|
||||
Elem *elem = ctx.get_elem(id, ETYPE_NONE)!;
|
||||
|
||||
elem.layout.w = @exact((short)width);
|
||||
elem.layout.h = @exact((short)height);
|
||||
|
||||
update_parent_size(elem, parent);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user