From: Christian Heller Date: Mon, 26 Aug 2013 16:12:25 +0000 (+0200) Subject: Improved error description in windows library. X-Git-Tag: tce~1029 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/processes?a=commitdiff_plain;h=5d9d7aa938af854c1c177e9ca77038d5f7dc2609;p=plomrogue Improved error description in windows library. --- diff --git a/src/windows.h b/src/windows.h index 2828e07..a8783fe 100644 --- a/src/windows.h +++ b/src/windows.h @@ -9,7 +9,8 @@ * * Windows can be almost any width (number has to fit into 16 bits); the virtual * 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. + * cells. Their height is limited by the height of the terminal screen, which + * must also fit into 2^16 cells. * * Positioning of windows can only indirectly be influenced: by resizing them, * and by shifting their relative position inside the (currently invisible) @@ -22,7 +23,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 forces virtual screen to grow beyond width of 2^16 cells + * 2 - would force virtual screen to grow beyond width or height of 2^16 cells * * TODO: Expose less internals to the API. *