Skip to content

Commit

Permalink
directvt#400 WIP: Get rid of C arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Oct 27, 2023
1 parent 2f71e9d commit f5c375d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/netxs/desktopio/canvas.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ namespace netxs
}();
static auto cache_bg = cache_fg;
auto& cache = fg ? cache_fg : cache_bg; // Fg and Bg are sorted differently.
auto c = lookup(cache, std::span{ rgba::vt256.data(), 16});
auto c = lookup(cache, std::span{ rgba::vt256.data(), 16 });
return netxs::swap_bits<0, 2>(c); // ANSI<->DOS color scheme reindex.
}
auto to_vtm16(bool fg = true) const // rgba: 4-bit Foreground color (vtm 16-color palette).
Expand Down
2 changes: 1 addition & 1 deletion src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4060,7 +4060,7 @@ namespace netxs::os
}
};
auto waits = std::to_array({ os::stdin_fd, (fd_t)alarm });
while (alive && WAIT_OBJECT_0 == ::WaitForMultipleObjects(2, waits.data(), FALSE, INFINITE))
while (alive && WAIT_OBJECT_0 == ::WaitForMultipleObjects((DWORD)waits.size(), waits.data(), FALSE, INFINITE))
{
if (!::GetNumberOfConsoleInputEvents(os::stdin_fd, &count))
{
Expand Down

0 comments on commit f5c375d

Please sign in to comment.