diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-11-25 02:09:37 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-11-25 02:09:37 +0800 |
commit | 36cdd9dae709c2bdf1d2ff04b156d2a17cbad4d1 (patch) | |
tree | a5f4ca3073a93d49237ff663f75db22e580287c0 /devel/tvision | |
parent | e9a59a00fa2020ddceca07c6bdd9172b63928f0f (diff) | |
download | freebsd-ports-graphics-36cdd9dae709c2bdf1d2ff04b156d2a17cbad4d1.tar.gz freebsd-ports-graphics-36cdd9dae709c2bdf1d2ff04b156d2a17cbad4d1.tar.zst freebsd-ports-graphics-36cdd9dae709c2bdf1d2ff04b156d2a17cbad4d1.zip |
make it work with 80x50
PR: 31973
Submitted by: Andrew Milton <akm@theinternet.com.au>
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 2ab1f23a352..e0034f834ca 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 00000000000..f62f245dc87 --- /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 */ |