fix first-time startup not being parameterized by startup window

This commit is contained in:
Ryan Fleury
2024-10-09 14:25:28 -07:00
parent 8e5ebc2d75
commit d0e0e35fb5
2 changed files with 20 additions and 2 deletions
+11
View File
@@ -401,6 +401,17 @@ type_coverage_eval_tests(void){
TestFunction *function = mule_get_module_function("dll_type_eval_tests");
function();
int abc = 0;
for(int i = 0; i < 1000; i += 1)
{
if(i == 500)
{
abc+= 1;
}
int a = i + abc;
int b = a*5;
}
int x = (int)(Anonymous_D);
}
+9 -2
View File
@@ -12716,11 +12716,11 @@ rd_frame(void)
RD_Window *ws = rd_window_open(window_dim, preferred_monitor, RD_CfgSrc_User);
if(monitor_dim.x < 1920)
{
rd_cmd(RD_CmdKind_ResetToCompactPanels);
rd_cmd(RD_CmdKind_ResetToCompactPanels, .window = rd_handle_from_window(ws));
}
else
{
rd_cmd(RD_CmdKind_ResetToDefaultPanels);
rd_cmd(RD_CmdKind_ResetToDefaultPanels, .window = rd_handle_from_window(ws));
}
}
@@ -14463,6 +14463,13 @@ rd_frame(void)
rd_cmd(RD_CmdKind_CancelQuery);
}
// rjf: unset command register slot, if we keep old input (and thus need
// to re-query user)
if(info->query.flags & RD_QueryFlag_KeepOldInput)
{
ws->query_cmd_regs_mask[slot/64] &= ~(1ull<<(slot%64));
}
// rjf: push command if possible
if(command_ready)
{