X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=window.c;h=d3ab4dfaf82dbce89ebb1303184661a13f5a3a27;hb=27acfb1639082101ce0911ecd0fd73758e224746;hp=3eaa0336a4580325fa92509c806426cef118302b;hpb=b84caf5446c89cba4886cb444f13405da31c5ad0;p=PuTTY.git diff --git a/window.c b/window.c index 3eaa0336..d3ab4dfa 100644 --- a/window.c +++ b/window.c @@ -267,7 +267,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) { return 0; } window_name = icon_name = NULL; - sprintf(msg, "PuTTY: %s", realhost); + sprintf(msg, "%s - PuTTY", realhost); set_title (msg); set_icon (msg); } @@ -1412,7 +1412,7 @@ void set_sbar (int total, int start, int page) { SetScrollInfo (hwnd, SB_VERT, &si, TRUE); } -Context get_ctx() { +Context get_ctx(void) { HDC hdc; if (hwnd) { hdc = GetDC (hwnd); @@ -1540,11 +1540,10 @@ void get_clip (void **p, int *len) { */ void optimised_move (int to, int from, int lines) { RECT r; - int min, max, d; + int min, max; min = (to < from ? to : from); max = to + from - min; - d = max - min; r.left = 0; r.right = cols * font_width; r.top = min * font_height; r.bottom = (max+lines) * font_height;