summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2019-09-25 15:05:47 (GMT)
committerdgp <dgp@users.sourceforge.net>2019-09-25 15:05:47 (GMT)
commite6a381f7346af7c42d6a08d75737cbf7ca2d50eb (patch)
treeea6f0d315ca7b038113fc74213a54ee872fca82a /win
parentb5942485c76bfda6223b6c9eaec84813e6d2e3f9 (diff)
parentc2eaef98e73b309df7c2e262fc0c982a634d0f9d (diff)
downloadtk-e6a381f7346af7c42d6a08d75737cbf7ca2d50eb.zip
tk-e6a381f7346af7c42d6a08d75737cbf7ca2d50eb.tar.gz
tk-e6a381f7346af7c42d6a08d75737cbf7ca2d50eb.tar.bz2
merge 8.6
Diffstat (limited to 'win')
-rw-r--r--win/stubs.c10
-rw-r--r--win/tkWinButton.c8
-rw-r--r--win/tkWinTest.c6
-rw-r--r--win/tkWinWm.c22
-rw-r--r--win/tkWinX.c12
5 files changed, 29 insertions, 29 deletions
diff --git a/win/stubs.c b/win/stubs.c
index 1cf23ef..884186c 100644
--- a/win/stubs.c
+++ b/win/stubs.c
@@ -444,25 +444,25 @@ int
XNoOp(
Display *display)
{
- display->request++;
+ display->request++;
return 0;
}
XAfterFunction
XSynchronize(
Display *display,
- Bool bool)
+ Bool onoff)
{
- display->request++;
+ display->request++;
return NULL;
}
int
XSync(
Display *display,
- Bool bool)
+ Bool discard)
{
- display->request++;
+ display->request++;
return 0;
}
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index f7b8ed2..7332c93 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.c
@@ -242,18 +242,18 @@ CreateProc(
{
Window window;
HWND parent;
- LPCWSTR class;
+ LPCWSTR windowClass;
WinButton *butPtr = (WinButton *)instanceData;
parent = Tk_GetHWND(parentWin);
if (butPtr->info.type == TYPE_LABEL) {
- class = L"STATIC";
+ windowClass = L"STATIC";
butPtr->style = SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS;
} else {
- class = L"BUTTON";
+ windowClass = L"BUTTON";
butPtr->style = BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS;
}
- butPtr->hwnd = CreateWindowW(class, NULL, butPtr->style,
+ butPtr->hwnd = CreateWindowW(windowClass, NULL, butPtr->style,
Tk_X(tkwin), Tk_Y(tkwin), Tk_Width(tkwin), Tk_Height(tkwin),
parent, NULL, Tk_GetHINSTANCE(), NULL);
SetWindowPos(butPtr->hwnd, HWND_TOP, 0, 0, 0, 0,
diff --git a/win/tkWinTest.c b/win/tkWinTest.c
index f5cb17c..6911334 100644
--- a/win/tkWinTest.c
+++ b/win/tkWinTest.c
@@ -432,7 +432,7 @@ TestfindwindowObjCmd(
int objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument values. */
{
- LPCWSTR title = NULL, class = NULL;
+ LPCWSTR title = NULL, windowClass = NULL;
Tcl_DString titleString, classString;
HWND hwnd = NULL;
int r = TCL_OK;
@@ -448,7 +448,7 @@ TestfindwindowObjCmd(
title = (LPCWSTR)Tcl_WinUtfToTChar(Tcl_GetString(objv[1]), -1, &titleString);
if (objc == 3) {
- class = (LPCWSTR)Tcl_WinUtfToTChar(Tcl_GetString(objv[2]), -1, &classString);
+ windowClass = (LPCWSTR)Tcl_WinUtfToTChar(Tcl_GetString(objv[2]), -1, &classString);
}
if (title[0] == 0)
title = NULL;
@@ -457,7 +457,7 @@ TestfindwindowObjCmd(
myPid = GetCurrentProcessId();
while (1) {
DWORD pid, tid;
- hwnd = FindWindowExW(NULL, hwnd, class, title);
+ hwnd = FindWindowExW(NULL, hwnd, windowClass, title);
if (hwnd == NULL)
break;
tid = GetWindowThreadProcessId(hwnd, &pid);
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index dcafd68..117b539 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -867,21 +867,21 @@ InitWindowClass(
if (!initialized) {
Tcl_MutexLock(&winWmMutex);
if (!initialized) {
- WNDCLASSW class;
+ WNDCLASSW windowClass;
initialized = 1;
- ZeroMemory(&class, sizeof(WNDCLASSW));
+ ZeroMemory(&windowClass, sizeof(WNDCLASSW));
- class.style = CS_HREDRAW | CS_VREDRAW;
- class.hInstance = Tk_GetHINSTANCE();
- class.lpszClassName = TK_WIN_TOPLEVEL_CLASS_NAME;
- class.lpfnWndProc = WmProc;
+ windowClass.style = CS_HREDRAW | CS_VREDRAW;
+ windowClass.hInstance = Tk_GetHINSTANCE();
+ windowClass.lpszClassName = TK_WIN_TOPLEVEL_CLASS_NAME;
+ windowClass.lpfnWndProc = WmProc;
if (titlebaricon == NULL) {
- class.hIcon = LoadIconW(Tk_GetHINSTANCE(), L"tk");
+ windowClass.hIcon = LoadIconW(Tk_GetHINSTANCE(), L"tk");
} else {
- class.hIcon = GetIcon(titlebaricon, ICON_BIG);
- if (class.hIcon == NULL) {
+ windowClass.hIcon = GetIcon(titlebaricon, ICON_BIG);
+ if (windowClass.hIcon == NULL) {
return TCL_ERROR;
}
@@ -892,9 +892,9 @@ InitWindowClass(
tsdPtr->iconPtr = titlebaricon;
}
- class.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
+ windowClass.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW);
- if (!RegisterClassW(&class)) {
+ if (!RegisterClassW(&windowClass)) {
Tcl_Panic("Unable to register TkTopLevel class");
}
}
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 58fe754..c01096e 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -501,30 +501,30 @@ TkWinDisplayChanged(
screen->root_visual->visualid = 0;
if (GetDeviceCaps(dc, RASTERCAPS) & RC_PALETTE) {
screen->root_visual->map_entries = GetDeviceCaps(dc, SIZEPALETTE);
- screen->root_visual->class = PseudoColor;
+ screen->root_visual->c_class = PseudoColor;
screen->root_visual->red_mask = 0x0;
screen->root_visual->green_mask = 0x0;
screen->root_visual->blue_mask = 0x0;
} else if (screen->root_depth == 4) {
- screen->root_visual->class = StaticColor;
+ screen->root_visual->c_class = StaticColor;
screen->root_visual->map_entries = 16;
} else if (screen->root_depth == 8) {
- screen->root_visual->class = StaticColor;
+ screen->root_visual->c_class = StaticColor;
screen->root_visual->map_entries = 256;
} else if (screen->root_depth == 12) {
- screen->root_visual->class = TrueColor;
+ screen->root_visual->c_class = TrueColor;
screen->root_visual->map_entries = 32;
screen->root_visual->red_mask = 0xf0;
screen->root_visual->green_mask = 0xf000;
screen->root_visual->blue_mask = 0xf00000;
} else if (screen->root_depth == 16) {
- screen->root_visual->class = TrueColor;
+ screen->root_visual->c_class = TrueColor;
screen->root_visual->map_entries = 64;
screen->root_visual->red_mask = 0xf8;
screen->root_visual->green_mask = 0xfc00;
screen->root_visual->blue_mask = 0xf80000;
} else if (screen->root_depth >= 24) {
- screen->root_visual->class = TrueColor;
+ screen->root_visual->c_class = TrueColor;
screen->root_visual->map_entries = 256;
screen->root_visual->red_mask = 0xff;
screen->root_visual->green_mask = 0xff00;