summaryrefslogtreecommitdiffstats
path: root/win/tkWinWindow.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2007-01-11 15:35:39 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2007-01-11 15:35:39 (GMT)
commit8a1e8594d50f9f447a44a0b55e35a5747d16fef6 (patch)
tree9afda096b9165b4f20fb70975876d2bf0c1c2c29 /win/tkWinWindow.c
parent37cb109b3778729819defa1b601f35fdbd071c45 (diff)
downloadtk-8a1e8594d50f9f447a44a0b55e35a5747d16fef6.zip
tk-8a1e8594d50f9f447a44a0b55e35a5747d16fef6.tar.gz
tk-8a1e8594d50f9f447a44a0b55e35a5747d16fef6.tar.bz2
Many minute fixes to reduce number of minor warnings from GCC.
Diffstat (limited to 'win/tkWinWindow.c')
-rw-r--r--win/tkWinWindow.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/win/tkWinWindow.c b/win/tkWinWindow.c
index 2f6ab18..4fc6a0e 100644
--- a/win/tkWinWindow.c
+++ b/win/tkWinWindow.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinWindow.c,v 1.12 2005/12/02 13:42:29 dkf Exp $
+ * RCS: @(#) $Id: tkWinWindow.c,v 1.13 2007/01/11 15:35:41 dkf Exp $
*/
#include "tkWinInt.h"
@@ -250,8 +250,7 @@ TkpScanWindowId(
*/
Window
-TkpMakeWindow(
- TkWindow *winPtr,
+TkpMakeWindow( TkWindow *winPtr,
Window parent)
{
HWND parentWin;
@@ -272,7 +271,7 @@ TkpMakeWindow(
*/
hwnd = CreateWindowEx(WS_EX_NOPARENTNOTIFY, TK_WIN_CHILD_CLASS_NAME, NULL,
- style, Tk_X(winPtr), Tk_Y(winPtr), Tk_Width(winPtr),
+ (DWORD) style, Tk_X(winPtr), Tk_Y(winPtr), Tk_Width(winPtr),
Tk_Height(winPtr), parentWin, NULL, Tk_GetHINSTANCE(), NULL);
SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
@@ -512,7 +511,7 @@ XMoveResizeWindow(
unsigned int width, unsigned int height)
{
display->request++;
- MoveWindow(Tk_GetHWND(w), x, y, width, height, TRUE);
+ MoveWindow(Tk_GetHWND(w), x, y, (int) width, (int) height, TRUE);
}
/*
@@ -571,8 +570,8 @@ XResizeWindow(
display->request++;
- MoveWindow(Tk_GetHWND(w), winPtr->changes.x, winPtr->changes.y, width,
- height, TRUE);
+ MoveWindow(Tk_GetHWND(w), winPtr->changes.x, winPtr->changes.y, (int)width,
+ (int)height, TRUE);
}
/*