Commit 79b29158 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix gcc 4.0 warnings.

parent dbfac2ee
...@@ -123,7 +123,7 @@ static inline void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point) ...@@ -123,7 +123,7 @@ static inline void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point)
/* Performs a world-to-viewport transformation on the specified width. /* Performs a world-to-viewport transformation on the specified width.
*/ */
static inline void INTERNAL_WSTODS(DC *dc, LONG *width) static inline void INTERNAL_WSTODS(DC *dc, DWORD *width)
{ {
POINT pt[2]; POINT pt[2];
pt[0].x = pt[0].y = 0; pt[0].x = pt[0].y = 0;
...@@ -1478,7 +1478,7 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath) ...@@ -1478,7 +1478,7 @@ static BOOL PATH_StrokePath(DC *dc, GdiPath *pPath)
LOGPEN lp; LOGPEN lp;
GetObjectW(hOldPen, sizeof(LOGPEN), &lp); GetObjectW(hOldPen, sizeof(LOGPEN), &lp);
if(lp.lopnWidth.x > 0) if(lp.lopnWidth.x > 0)
INTERNAL_WSTODS(dc, &lp.lopnWidth.x); INTERNAL_WSTODS(dc, (DWORD*)&lp.lopnWidth.x);
hNewPen = CreatePenIndirect(&lp); hNewPen = CreatePenIndirect(&lp);
} }
SelectObject(dc->hSelf, hNewPen); SelectObject(dc->hSelf, hNewPen);
......
...@@ -2262,7 +2262,7 @@ INT WINAPI GetSystemMetrics( INT index ) ...@@ -2262,7 +2262,7 @@ INT WINAPI GetSystemMetrics( INT index )
return 0; return 0;
case SM_SWAPBUTTON: case SM_SWAPBUTTON:
get_bool_param( SPI_SETMOUSEBUTTONSWAP_IDX, SPI_SETMOUSEBUTTONSWAP_REGKEY, get_bool_param( SPI_SETMOUSEBUTTONSWAP_IDX, SPI_SETMOUSEBUTTONSWAP_REGKEY,
SPI_SETMOUSEBUTTONSWAP_VALNAME, &swap_buttons, &ret ); SPI_SETMOUSEBUTTONSWAP_VALNAME, &swap_buttons, (BOOL*)&ret );
return ret; return ret;
case SM_RESERVED1: case SM_RESERVED1:
case SM_RESERVED2: case SM_RESERVED2:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment