[ui] Remove some extra debug outlines

Forcing hidden views and doing the outlines for the screen canvas were
part of sorting out weirdnesses with canvases and component sub-pools.
This commit is contained in:
Bill Currie 2023-01-21 11:20:09 +09:00
parent 3c8f02c655
commit 03e867f0f8
2 changed files with 1 additions and 3 deletions

View file

@ -154,11 +154,9 @@ hud_debug_f (void *data, const cvar_t *cvar)
return;
}
if (hud_debug) {
hud_add_outlines (cl_screen_view, 0xfb);
hud_add_outlines (hud_canvas_view, 0x6f);
} else {
hud_remove_outlines (hud_canvas_view);
hud_remove_outlines (cl_screen_view);
}
}

View file

@ -319,7 +319,7 @@ draw_outline_views (canvas_system_t *canvas_sys, ecs_pool_t *pool,
while (count-- > 0) {
view_t view = View_FromEntity (viewsys, *ent++);
byte c = *col++;
if (1 || View_GetVisible (view)) {
if (View_GetVisible (view)) {
view_pos_t p = View_GetAbs (view);
view_pos_t l = View_GetLen (view);
view_pos_t q = { p.x + l.x - 1, p.y + l.y - 1 };