update dlib, project compiles again
This commit is contained in:
parent
ef5ea1d90a
commit
91f2914c46
2
src/dlib
2
src/dlib
@ -1 +1 @@
|
||||
Subproject commit 6a757dd36b29f553c290d7188e8e02400cd25ba9
|
||||
Subproject commit 263cd8435ddd7a1cf67b39c2933e606a891bfe7b
|
||||
@ -52,7 +52,7 @@ struct UIContext
|
||||
UIBuffer buffer;
|
||||
|
||||
Vec4[4] bg_cols;
|
||||
Vec4[4] border_color;
|
||||
Vec4[4] border_cols;
|
||||
}
|
||||
|
||||
void
|
||||
@ -85,7 +85,7 @@ SetBgCols(UIContext* ctx, Vec4[4] cols)
|
||||
void
|
||||
SetBorderCols(UIContext* ctx, Vec4[4] cols)
|
||||
{
|
||||
ctx.border_color = cols;
|
||||
ctx.border_cols = cols;
|
||||
}
|
||||
|
||||
UIItem*
|
||||
@ -107,6 +107,9 @@ UIWindow(UIContext* ctx, Rect rect, f32 border_px, u8[] text)
|
||||
{
|
||||
UIItem* item = Find(ctx, text);
|
||||
|
||||
DrawRect(ctx, rect.x0, rect.y0, rect.x1, rect.y1, 0.0, 0.0, 0.0, 0.0, ctx.bg_cols);
|
||||
DrawRect(ctx, rect.x0, rect.y0, rect.x1, rect.y1, border_px, 0.0, 0.0, 0.0, ctx.border_cols);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user