diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-24 18:09:37 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-11-24 18:09:37 +0000 |
commit | d783ad5ca0fbebdaf9c9bf18b94c03c3c914c108 (patch) | |
tree | 44e4ad7307740ae4133b707786b1071ca1c6411e /devel/tvision | |
parent | Fix manpage packaging. (diff) |
make it work with 80x50
PR: 31973
Submitted by: Andrew Milton <akm@theinternet.com.au>
Notes
Notes:
svn path=/head/; revision=50486
Diffstat (limited to 'devel/tvision')
-rw-r--r-- | devel/tvision/Makefile | 2 | ||||
-rw-r--r-- | devel/tvision/files/patch-lib::system.cc | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/devel/tvision/Makefile b/devel/tvision/Makefile index 2ab1f23a3523..e0034f834ca1 100644 --- a/devel/tvision/Makefile +++ b/devel/tvision/Makefile @@ -7,7 +7,7 @@ PORTNAME= tvision PORTVERSION= 0.7 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= devel/lang/c++ diff --git a/devel/tvision/files/patch-lib::system.cc b/devel/tvision/files/patch-lib::system.cc new file mode 100644 index 000000000000..f62f245dc875 --- /dev/null +++ b/devel/tvision/files/patch-lib::system.cc @@ -0,0 +1,22 @@ +--- lib/system.cc.orig Sun Nov 25 01:43:10 2001 ++++ lib/system.cc Sun Nov 25 01:44:49 2001 +@@ -857,13 +857,18 @@ + { + TEvent event; + mouse_info_t mi; ++ int heightDivider = 16; + + mi.operation = MOUSE_GETINFO; + ioctl(STDOUT_FILENO, CONS_MOUSECTL, &mi); ++ ++ if (TScreen::screenHeight > 25) ++ heightDivider = 8; ++ + event.mouse.controlKeyState = kbReadShiftState(); + event.mouse.where.x = range(mi.u.data.x / 8, 0, + TScreen::screenWidth - 1); +- event.mouse.where.y = range(mi.u.data.y / 16, 0, ++ event.mouse.where.y = range(mi.u.data.y / heightDivider, 0, + TScreen::screenHeight - 1); + + /* convert button bits to TV standard */ |