fix truncation elipses bounds
This commit is contained in:
parent
3eab781259
commit
50be264a77
@ -252,7 +252,7 @@ void GC_TickAsync(WaveLaneCtx *lane, AsyncTickCtx *tick)
|
|||||||
{
|
{
|
||||||
/* TODO: Remove this */
|
/* TODO: Remove this */
|
||||||
/* Create atlas */
|
/* Create atlas */
|
||||||
Vec2I32 atlas_dims = VEC2I32(1024, 1024);
|
Vec2I32 atlas_dims = VEC2I32(8192, 8192);
|
||||||
if (G_IsResourceNil(GC.atlas))
|
if (G_IsResourceNil(GC.atlas))
|
||||||
{
|
{
|
||||||
G_ArenaHandle gpu_perm = G_PermArena();
|
G_ArenaHandle gpu_perm = G_PermArena();
|
||||||
@ -260,7 +260,7 @@ void GC_TickAsync(WaveLaneCtx *lane, AsyncTickCtx *tick)
|
|||||||
gpu_perm,
|
gpu_perm,
|
||||||
G_Format_R8G8B8A8_Unorm_Srgb,
|
G_Format_R8G8B8A8_Unorm_Srgb,
|
||||||
atlas_dims,
|
atlas_dims,
|
||||||
/* FIXME: We may need simultaneous access? */
|
/* FIXME: Do we need simultaneous access? */
|
||||||
G_Layout_AnyQueue_ShaderRead_CopyRead_CopyWrite_Present,
|
G_Layout_AnyQueue_ShaderRead_CopyRead_CopyWrite_Present,
|
||||||
);
|
);
|
||||||
GC.atlas_ref = G_PushTexture2DRef(gpu_perm, GC.atlas);
|
GC.atlas_ref = G_PushTexture2DRef(gpu_perm, GC.atlas);
|
||||||
|
|||||||
@ -1275,7 +1275,6 @@ void UI_EndFrame(UI_Frame *frame)
|
|||||||
{
|
{
|
||||||
GC_RunRect rr = elipses_run.rects[rect_idx];
|
GC_RunRect rr = elipses_run.rects[rect_idx];
|
||||||
rr.baseline_pos += elipses_start_pos;
|
rr.baseline_pos += elipses_start_pos;
|
||||||
rr.bounds = AddRng2Vec2(rr.bounds, VEC2(elipses_start_pos, 0));
|
|
||||||
if ((rr.baseline_pos + rr.advance) <= max_baseline)
|
if ((rr.baseline_pos + rr.advance) <= max_baseline)
|
||||||
{
|
{
|
||||||
final_rects[final_rects_count] = rr;
|
final_rects[final_rects_count] = rr;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user