[syslinux:master] rosh: fix commented out WS usage in linux to grab screen size
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Sun Nov 14 12:54:28 PST 2010
Commit-ID: 912868315714ebb27de25f5f98d58b1aa08f2e1f
Gitweb: http://syslinux.zytor.com/commit/912868315714ebb27de25f5f98d58b1aa08f2e1f
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Tue, 20 Jul 2010 11:56:28 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sat, 9 Oct 2010 07:33:06 -0400
rosh: fix commented out WS usage in linux to grab screen size
---
com32/rosh/rosh.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/com32/rosh/rosh.h b/com32/rosh/rosh.h
index b016e2f..118c531 100644
--- a/com32/rosh/rosh.h
+++ b/com32/rosh/rosh.h
@@ -135,10 +135,10 @@ static inline int getscreensize(int fd, int *rows, int *cols)
str = NULL;
if (fd == 1) {
ioctl(0, TIOCGWINSZ, &ws);
-/* if (rows)
+ if (rows)
*rows = ws.ws_row;
if (cols)
- *cols = ws.ws_col;*/
+ *cols = ws.ws_col;
if (rows && !*rows) {
str = getenv("LINES");
if (str)
More information about the Syslinux-commits
mailing list