diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/9term/bsdpty.c | 4 | ||||
-rw-r--r-- | src/libdraw/init.c | 5 |
2 files changed, 7 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; diff --git a/src/libdraw/init.c b/src/libdraw/init.c index 452b6da7..e5a367f3 100644 --- a/src/libdraw/init.c +++ b/src/libdraw/init.c @@ -19,6 +19,11 @@ Image *mousebuttons; Image *mousesave; Mouse _drawmouse; +void +needdisplay(void) +{ +} + /* static void drawshutdown(void) |