mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
mac_pollterm() is no longer useful and can be retired.
[originally from svn r5249]
This commit is contained in:
parent
b69e9d0781
commit
061cfb7ef3
@ -260,7 +260,6 @@ static void mac_eventloop(void) {
|
|||||||
cursrgn = NewRgn();
|
cursrgn = NewRgn();
|
||||||
sleeptime = 0;
|
sleeptime = 0;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
mac_adjustcursor(cursrgn);
|
|
||||||
ticksleft=timing_next_time-GETTICKCOUNT();
|
ticksleft=timing_next_time-GETTICKCOUNT();
|
||||||
if (sleeptime > ticksleft && ticksleft >=0)
|
if (sleeptime > ticksleft && ticksleft >=0)
|
||||||
sleeptime=ticksleft;
|
sleeptime=ticksleft;
|
||||||
@ -286,7 +285,6 @@ static void mac_eventloop(void) {
|
|||||||
}
|
}
|
||||||
if (!gotevent)
|
if (!gotevent)
|
||||||
sk_poll();
|
sk_poll();
|
||||||
mac_pollterm();
|
|
||||||
if (mac_gestalts.apprvers >= 0x100 && mac_frontwindow() != NULL)
|
if (mac_gestalts.apprvers >= 0x100 && mac_frontwindow() != NULL)
|
||||||
IdleControls(mac_frontwindow());
|
IdleControls(mac_frontwindow());
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,6 @@ extern void mac_showeventlog(Session *);
|
|||||||
/* from macterm.c */
|
/* from macterm.c */
|
||||||
extern void mac_opensession(void);
|
extern void mac_opensession(void);
|
||||||
extern void mac_startsession(Session *);
|
extern void mac_startsession(Session *);
|
||||||
extern void mac_pollterm(void);
|
|
||||||
/* from macstore.c */
|
/* from macstore.c */
|
||||||
extern OSErr get_putty_dir(Boolean makeit, short *pVRefNum, long *pDirID);
|
extern OSErr get_putty_dir(Boolean makeit, short *pVRefNum, long *pDirID);
|
||||||
extern OSErr get_session_dir(Boolean makeit, short *pVRefNum, long *pDirID);
|
extern OSErr get_session_dir(Boolean makeit, short *pVRefNum, long *pDirID);
|
||||||
|
@ -304,18 +304,6 @@ static pascal OSStatus uni_to_font_fallback(UniChar *ucp,
|
|||||||
return noErr;
|
return noErr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Called every time round the event loop.
|
|
||||||
*/
|
|
||||||
void mac_pollterm(void)
|
|
||||||
{
|
|
||||||
Session *s;
|
|
||||||
|
|
||||||
for (s = sesslist; s != NULL; s = s->next) {
|
|
||||||
term_update(s->term);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* To be called whenever the window size changes.
|
* To be called whenever the window size changes.
|
||||||
* rows and cols should be desired values.
|
* rows and cols should be desired values.
|
||||||
|
Loading…
Reference in New Issue
Block a user