Corregir mostrarVentana en ui
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
ade963f35a
commit
2f3685be6a
@ -148,9 +148,10 @@ void ui::mostrarVentana(WINDOW *ventana, std::vector<std::string> *texto,
|
||||
attron(A_BOLD);
|
||||
box(ventana, 0, 0);
|
||||
mvwprintw(ventana, 0, 1, tituloVentana->c_str());
|
||||
for (uint8_t i = 1; i < *sectores + 1; i++) {
|
||||
for (uint8_t j = 0; j < texto->size(); j++) {
|
||||
mvwprintw(ventana, j + 1, *ancho - *ancho / i + 1, texto->at(j).c_str());
|
||||
for (uint8_t i = 0; i < *sectores; i++) {
|
||||
for (uint8_t j = 0; j < texto->size() / *sectores; j++) {
|
||||
mvwprintw(ventana, j + 1, *ancho * i + 1,
|
||||
texto->at(j + texto->size() / *sectores * (i)).c_str());
|
||||
}
|
||||
}
|
||||
attroff(A_BOLD);
|
||||
|
Loading…
x
Reference in New Issue
Block a user