~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mistaken identity in sesssaver() was breaking saved-session edit box
[sgt/putty]
/
sizetip.c
diff --git
a/sizetip.c
b/sizetip.c
index
321216a
..
94407ae
100644
(file)
--- a/
sizetip.c
+++ b/
sizetip.c
@@
-2,16
+2,18
@@
#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
#include <winreg.h>
#include <tchar.h>
#include <stdio.h>
+#include <stdlib.h>
#include "putty.h"
#include "putty.h"
-ATOM tip_class = 0;
+
static
ATOM tip_class = 0;
-HFONT tip_font;
-COLORREF tip_bg;
-COLORREF tip_text;
+
static
HFONT tip_font;
+
static
COLORREF tip_bg;
+
static
COLORREF tip_text;
-LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg,
+ WPARAM wParam, LPARAM lParam)
{
switch (nMsg) {
{
switch (nMsg) {
@@
-85,8
+87,8
@@
LRESULT CALLBACK SizeTipWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lPar
return DefWindowProc(hWnd, nMsg, wParam, lParam);
}
return DefWindowProc(hWnd, nMsg, wParam, lParam);
}
-HWND tip_wnd = NULL;
-int tip_enabled = 0;
+
static
HWND tip_wnd = NULL;
+
static
int tip_enabled = 0;
void UpdateSizeTip(HWND src, int cx, int cy)
{
void UpdateSizeTip(HWND src, int cx, int cy)
{