Skip to content

Commit

Permalink
Merge pull request cpp-best-practices#8 from cpp-best-practices/sugge…
Browse files Browse the repository at this point in the history
…stions_from_arthur

Fixes suggested by @ArthurSonzogni
  • Loading branch information
lefticus authored Mar 29, 2022
2 parents 69ccbc8 + 01eb2f6 commit e5fa609
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ struct Bitmap : ftxui::Node
};
}

void SetBox(ftxui::Box box) override { box_ = box; }

void Render(ftxui::Screen &screen) override
{
for (std::size_t x = 0; x < width_; ++x) {
Expand Down Expand Up @@ -283,9 +281,8 @@ void game_iteration_canvas()
small_bm | ftxui::border }) });
};

auto container = ftxui::Container::Vertical({});
auto renderer = ftxui::Renderer(make_layout);

auto renderer = ftxui::Renderer(container, make_layout);

std::atomic<bool> refresh_ui_continue = true;

Expand Down

0 comments on commit e5fa609

Please sign in to comment.