1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Resizing of terminal windows added. Seems to work, but term_size might benefit

from calling scroll_display.  This is where my scroll-optimisations look less
useful than Simon's.

[originally from svn r72]
This commit is contained in:
Ben Harris
1999-03-03 22:03:54 +00:00
parent a9b471d5b3
commit c53d7fa688
3 changed files with 41 additions and 9 deletions

14
mac.c
View File

@ -1,4 +1,4 @@
/* $Id: mac.c,v 1.1.2.10 1999/03/01 22:26:49 ben Exp $ */
/* $Id: mac.c,v 1.1.2.11 1999/03/03 22:03:54 ben Exp $ */
/*
* Copyright (c) 1999 Ben Harris
* All rights reserved.
@ -60,6 +60,7 @@ static void mac_startup(void);
static void mac_eventloop(void);
static void mac_event(EventRecord *);
static void mac_contentclick(WindowPtr, EventRecord *);
static void mac_growwindow(WindowPtr, EventRecord *);
static void mac_activatewindow(WindowPtr, Boolean);
static void mac_updatewindow(WindowPtr);
static void mac_keypress(EventRecord *);
@ -169,6 +170,7 @@ static void mac_event(EventRecord *event) {
DragWindow(window, event->where, &qd.screenBits.bounds);
break;
case inGrow:
mac_growwindow(window, event);
break;
case inZoomIn:
case inZoomOut:
@ -215,6 +217,14 @@ static void mac_contentclick(WindowPtr window, EventRecord *event) {
}
}
static void mac_growwindow(WindowPtr window, EventRecord *event) {
switch (mac_windowtype(window)) {
case wTerminal:
mac_growterm(window, event);
}
}
static void mac_activatewindow(WindowPtr window, Boolean active) {
switch (mac_windowtype(window)) {
@ -342,7 +352,7 @@ static void mac_adjustcursor(void) {
static void mac_shutdown(void) {
ExitToShell();
exit(0);
}
void fatalbox(const char *fmt, ...) {