From: Christian Heller Date: Mon, 26 Aug 2013 01:06:28 +0000 (+0200) Subject: Improved windows library intro comment. X-Git-Tag: tce~1046 X-Git-Url: https://plomlompom.com/repos/day_todos?a=commitdiff_plain;h=c681a0fed768dfff7af1084dedeec25ab8a421fa;p=plomrogue Improved windows library intro comment. --- diff --git a/src/windows.h b/src/windows.h index af84228..9afc50f 100644 --- a/src/windows.h +++ b/src/windows.h @@ -8,8 +8,8 @@ * (in a bizarre fashion, see below) automatically. * * Windows can be almost any width (number has to fit into 16 bits); the virtual - * screen grows with them as needed -- but only horizontally. Their height is - * limited by the height of the terminal screen. + * screen grows with them as needed -- but only horizontally and only up to 2^16 + * cells. Their height is limited by the height of the terminal screen. * * Positioning of windows can only indirectly be influenced: by resizing them, * and by shifting their relative position inside the (currently invisible) @@ -22,7 +22,7 @@ * Functions that return uint8_t return these error codes: * 0 - success * 1 - memory allocation error (of ncurses' pads/windows, or scroll hint texts) - * 2 - activity makes virtual screen grow beyond uint16 height/width confines + * 2 - activity forces virtual screen to grow beyond width of 2^16 cells * * TODO: Think up a more intuitive window positioning algorithm or at least make * the chain that windows are positioned by visible.