From 1ff894f6f557c877961c58961f35fd652e997374 Mon Sep 17 00:00:00 2001 From: Arthur Sonzogni Date: Sun, 8 Aug 2021 08:49:46 +0200 Subject: [PATCH] Address @tusharpm comments. (#178) @tusharpm let two comments in: https://github.com/ArthurSonzogni/FTXUI/pull/175 but this already landed in: https://github.com/ArthurSonzogni/FTXUI/pull/173 Address them here. --- include/ftxui/screen/box.hpp | 8 ++++---- src/ftxui/component/renderer.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/ftxui/screen/box.hpp b/include/ftxui/screen/box.hpp index 719e1bd..e421d1d 100644 --- a/include/ftxui/screen/box.hpp +++ b/include/ftxui/screen/box.hpp @@ -4,10 +4,10 @@ namespace ftxui { struct Box { - int x_min; - int x_max; - int y_min; - int y_max; + int x_min = 0; + int x_max = 0; + int y_min = 0; + int y_max = 0; static Box Intersection(Box a, Box b); bool Contain(int x, int y); diff --git a/src/ftxui/component/renderer.cpp b/src/ftxui/component/renderer.cpp index 923a28f..5c568f8 100644 --- a/src/ftxui/component/renderer.cpp +++ b/src/ftxui/component/renderer.cpp @@ -75,7 +75,7 @@ Component Renderer(Component child, std::function render) { /// if (focused) /// return text("My interface") | inverted; /// else -/// return text("My interface") | inverted; +/// return text("My interface"); /// }); /// screen.Loop(renderer); /// ```