mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-27 07:42:09 -05:00
Since Proff doesn't like me, I'll just print the number of elapsed ticks at the
end of the test data. [originally from svn r106]
This commit is contained in:
parent
6537147dd9
commit
cd60f004eb
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macterm.c,v 1.1.2.22 1999/03/14 17:43:35 ben Exp $ */
|
/* $Id: macterm.c,v 1.1.2.23 1999/03/14 20:43:51 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Ben Harris
|
* Copyright (c) 1999 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -121,6 +121,8 @@ static void display_resource(unsigned long type, short id) {
|
|||||||
void mac_newsession(void) {
|
void mac_newsession(void) {
|
||||||
struct mac_session *s;
|
struct mac_session *s;
|
||||||
int i;
|
int i;
|
||||||
|
UInt32 starttime;
|
||||||
|
char msg[128];
|
||||||
|
|
||||||
/* This should obviously be initialised by other means */
|
/* This should obviously be initialised by other means */
|
||||||
mac_loadconfig(&cfg);
|
mac_loadconfig(&cfg);
|
||||||
@ -144,7 +146,11 @@ void mac_newsession(void) {
|
|||||||
SetPalette(s->window, s->palette, TRUE);
|
SetPalette(s->window, s->palette, TRUE);
|
||||||
ActivatePalette(s->window);
|
ActivatePalette(s->window);
|
||||||
ShowWindow(s->window);
|
ShowWindow(s->window);
|
||||||
|
starttime = TickCount();
|
||||||
display_resource('pTST', 128);
|
display_resource('pTST', 128);
|
||||||
|
sprintf(msg, "Elapsed ticks: %d\015\012", TickCount() - starttime);
|
||||||
|
inbuf_putstr(msg);
|
||||||
|
term_out();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mac_initfont(struct mac_session *s) {
|
static void mac_initfont(struct mac_session *s) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user