mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-12 23:31:38 -07:00
actually, rely on entry point trap calculation to do exe-rdi waiting; adjust default fonts to be more consistent with windows
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -5070,7 +5070,6 @@ ctrl_thread__eval_scope_begin(Arena *arena, CTRL_UserBreakpointList *user_bps, C
|
||||
process = process->next)
|
||||
{
|
||||
if(process->kind != CTRL_EntityKind_Process) { continue; }
|
||||
U64 process_mod_idx = 0;
|
||||
for(CTRL_Entity *mod = process->first;
|
||||
mod != &ctrl_entity_nil;
|
||||
mod = mod->next)
|
||||
@@ -5087,7 +5086,7 @@ ctrl_thread__eval_scope_begin(Arena *arena, CTRL_UserBreakpointList *user_bps, C
|
||||
// (we *always* wait for the initial module)
|
||||
//
|
||||
B32 rdi_is_necessary = 1;
|
||||
if(process_mod_idx > 0 && rdi == &rdi_parsed_nil) ProfScope("determine if RDI is necessary")
|
||||
if(rdi == &rdi_parsed_nil) ProfScope("determine if RDI is necessary")
|
||||
{
|
||||
// rjf: find cached result
|
||||
U64 hash = ctrl_hash_from_handle(mod->handle);
|
||||
@@ -5176,7 +5175,6 @@ ctrl_thread__eval_scope_begin(Arena *arena, CTRL_UserBreakpointList *user_bps, C
|
||||
eval_modules_primary = &eval_modules[eval_module_idx];
|
||||
}
|
||||
eval_module_idx += 1;
|
||||
process_mod_idx += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+19213
-4168
File diff suppressed because it is too large
Load Diff
@@ -5,10 +5,15 @@
|
||||
//~ rjf: Embedded Data
|
||||
|
||||
@embed_file rd_icon_font_bytes: "../data/icons.ttf"
|
||||
@embed_file rd_default_main_font_bytes: "../data/Roboto-Regular.ttf"
|
||||
|
||||
//@embed_file rd_default_main_font_bytes: "../data/Roboto-Regular.ttf"
|
||||
@embed_file rd_default_main_font_bytes: "../data/segoeui.ttf"
|
||||
|
||||
//@embed_file rd_default_main_font_bytes: "../data/seguisb.ttf"
|
||||
@embed_file rd_default_code_font_bytes: "../data/liberation-mono.ttf"
|
||||
//@embed_file rd_default_code_font_bytes: "../data/liberation-.ttf"
|
||||
//@embed_file rd_default_code_font_bytes: "../data/Inconsolata-Regular.ttf"
|
||||
@embed_file rd_default_code_font_bytes: "../data/JetBrainsMono-Regular.ttf"
|
||||
|
||||
@embed_file rd_icon_file_bytes: "../data/logo.ico"
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
+1
-5
@@ -2781,11 +2781,7 @@ ui_box_text_position(UI_Box *box)
|
||||
FNT_Tag font = box->font;
|
||||
F32 font_size = box->font_size;
|
||||
FNT_Metrics font_metrics = fnt_metrics_from_tag_size(font, font_size);
|
||||
result.y = floor_f32((box->rect.p0.y + box->rect.p1.y)/2.f) + font_metrics.ascent/2.f - 2.f;
|
||||
if(!fnt_tag_match(font, ui_icon_font()))
|
||||
{
|
||||
result.y += font_metrics.descent/2;
|
||||
}
|
||||
result.y = floor_f32((box->rect.p0.y + box->rect.p1.y)/2.f + font_metrics.ascent/2.f - font_metrics.descent/2.f);
|
||||
switch(box->text_align)
|
||||
{
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user