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>
This commit is contained in:
Russ Cox 2017-01-06 14:57:18 -05:00
parent d296c18e37
commit 9e0d3750c5
3 changed files with 9 additions and 2 deletions

View file

@ -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;