aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2017-01-06 14:57:18 -0500
committerRuss Cox <rsc@swtch.com>2017-01-06 20:20:33 +0000
commit9e0d3750c543de49ccc43512cb3fbaa1f42f1648 (patch)
treea4616f3a4563b83d165af0558f20930228687284 /src/cmd/9term
parentd296c18e379547218c4c50445c56e725ec3be91d (diff)
downloadplan9port-9e0d3750c543de49ccc43512cb3fbaa1f42f1648.tar.gz
plan9port-9e0d3750c543de49ccc43512cb3fbaa1f42f1648.tar.bz2
plan9port-9e0d3750c543de49ccc43512cb3fbaa1f42f1648.zip
9term, win: work around bsd linker nonsense
Change-Id: Ifcef0636ee1e1fd0f9b06a8d1a99d58fae831318 Reviewed-on: https://plan9port-review.googlesource.com/2780 Reviewed-by: Russ Cox <rsc@swtch.com>
Diffstat (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/bsdpty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/9term/bsdpty.c b/src/cmd/9term/bsdpty.c
index fe0367f0..31281325 100644
--- a/src/cmd/9term/bsdpty.c
+++ b/src/cmd/9term/bsdpty.c
@@ -77,10 +77,10 @@ updatewinsize(int row, int col, int dx, int dy)
ws.ws_col = col;
ws.ws_xpixel = dx;
-
+ needdisplay(); // in case this is 'win' and not 9term
// Leave "is this a hidpi display" in the low bit of the ypixel height for mc.
dy &= ~1;
- if(display->dpi >= DefaultDPI*3/2)
+ if(display != nil && display->dpi >= DefaultDPI*3/2)
dy |= 1;
ws.ws_ypixel = dy;