From: Ricardo Markiewicz Date: Tue, 18 Oct 2005 04:12:12 +0000 (+0000) Subject: Wordwrap dentro de la ventana. X-Git-Tag: 1_0-pre1~40 X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/commitdiff_plain/554ba9dc194b4b21a9fbae997e65eb22b4cf1d8c?ds=inline;hp=b9869b55bfb58a28c42aa62b5a45fc7d7b5fdcc4 Wordwrap dentro de la ventana. --- diff --git a/nviewer/w_btree.cpp b/nviewer/w_btree.cpp index 5cddabb..2dbee00 100644 --- a/nviewer/w_btree.cpp +++ b/nviewer/w_btree.cpp @@ -27,17 +27,8 @@ void wBTree::ShowNode (uint node_num) node_keys = tree->ReadKeys (node, node_header); int y, x; - y = 5; - x = 5; - /* Dibujo el bloque de color rojo */ - /*wattron (win, COLOR_PAIR (1)); - for (uint i=0; i < tree->header.block_size + 2; i++) - mvwaddstr (win, y+1, i+x-1, "."); - for (uint i=0; i < tree->header.block_size + 2; i++) - mvwaddstr (win, y-1, i+x-1, "."); - mvwaddstr (win, y, x-1, "."); - mvwaddstr (win, y, tree->header.block_size + x, "."); - wattroff (win, COLOR_PAIR (1));*/ + y = 8; + x = 2; for (uint o=0; o (width-4)) { + y++; + x = 2; + } + if (n%2) wattron (win, COLOR_PAIR (2)); else