mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-12-01 01:53:20 -08:00
sketch out thread color events & client-driven thread color state, plug thread colors back into ui
This commit is contained in:
1 parent
35659a4525
commit
a7ca8dd0a0
12 files changed
+54
-21
No files matched your search
@@ -1059,7 +1059,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
U64 thread_rip_voff = ctrl_voff_from_vaddr(module, thread_rip_vaddr);
|
||||
|
||||
// rjf: thread info => color
|
||||
Vec4F32 color = rd_rgba_from_theme_color(RD_ThemeColor_Text);
|
||||
Vec4F32 color = rd_rgba_from_thread(thread);
|
||||
{
|
||||
if(unwind_count != 0)
|
||||
{
|
||||
@@ -1072,10 +1072,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
{
|
||||
color = rd_rgba_from_theme_color(RD_ThemeColor_ThreadError);
|
||||
}
|
||||
else if(thread->rgba != 0)
|
||||
{
|
||||
color = rgba_from_u32(thread->rgba);
|
||||
}
|
||||
if(d_ctrl_targets_running() && d_ctrl_last_run_frame_idx() < rd_state->frame_index)
|
||||
{
|
||||
color.w *= 0.5f;
|
||||
@@ -1219,7 +1215,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
U64 thread_rip_voff = ctrl_voff_from_vaddr(module, thread_rip_vaddr);
|
||||
|
||||
// rjf: thread info => color
|
||||
Vec4F32 color = v4f32(1, 1, 1, 1);
|
||||
Vec4F32 color = rd_rgba_from_thread(thread);
|
||||
{
|
||||
if(unwind_count != 0)
|
||||
{
|
||||
@@ -1232,10 +1228,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
{
|
||||
color = rd_rgba_from_theme_color(RD_ThemeColor_ThreadError);
|
||||
}
|
||||
else if(thread->rgba != 0)
|
||||
{
|
||||
color = rgba_from_u32(thread->rgba);
|
||||
}
|
||||
if(d_ctrl_targets_running() && d_ctrl_last_run_frame_idx() < rd_state->frame_index)
|
||||
{
|
||||
color.w *= 0.5f;
|
||||
|
||||
Reference in new issue
Block a user