Corregir mostrarVentana en ui

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2021-05-12 11:32:58 +02:00
parent ade963f35a
commit 2f3685be6a
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505

View File

@ -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);