Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
56a19923
Commit
56a19923
authored
Jul 02, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace some 16-bit calls by their 32-bit equivalents.
parent
b0327f2b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
39 deletions
+39
-39
menu.c
controls/menu.c
+3
-3
msvideo_main.c
dlls/msvideo/msvideo_main.c
+4
-4
clipping.c
objects/clipping.c
+15
-15
palette.c
objects/palette.c
+11
-11
clipboard.c
windows/clipboard.c
+5
-5
mdi.c
windows/mdi.c
+1
-1
No files found.
controls/menu.c
View file @
56a19923
...
...
@@ -2339,7 +2339,7 @@ static LRESULT MENU_DoNextMenu( MTRACKER* pmt, UINT vk )
HWND
hNewWnd
;
UINT
id
=
0
;
LRESULT
l
=
SendMessageA
(
pmt
->
hOwnerWnd
,
WM_NEXTMENU
,
vk
,
(
IS_SYSTEM_MENU
(
menu
))
?
GetSubMenu
16
(
pmt
->
hTopMenu
,
0
)
:
pmt
->
hTopMenu
);
(
IS_SYSTEM_MENU
(
menu
))
?
GetSubMenu
(
pmt
->
hTopMenu
,
0
)
:
pmt
->
hTopMenu
);
TRACE
(
"%04x [%04x] -> %04x [%04x]
\n
"
,
(
UINT16
)
pmt
->
hCurrentMenu
,
(
UINT16
)
pmt
->
hOwnerWnd
,
LOWORD
(
l
),
HIWORD
(
l
)
);
...
...
@@ -2387,7 +2387,7 @@ static LRESULT MENU_DoNextMenu( MTRACKER* pmt, UINT vk )
wndPtr
=
WIN_FindWndPtr
(
hNewWnd
);
if
(
wndPtr
->
dwStyle
&
WS_SYSMENU
&&
GetSubMenu
16
(
wndPtr
->
hSysMenu
,
0
)
==
hNewMenu
)
GetSubMenu
(
wndPtr
->
hSysMenu
,
0
)
==
hNewMenu
)
{
/* get the real system menu */
hNewMenu
=
wndPtr
->
hSysMenu
;
...
...
@@ -3897,7 +3897,7 @@ HMENU WINAPI GetSystemMenu( HWND hWnd, BOOL bRevert )
if
(
wndPtr
->
hSysMenu
)
{
POPUPMENU
*
menu
;
retvalue
=
GetSubMenu
16
(
wndPtr
->
hSysMenu
,
0
);
retvalue
=
GetSubMenu
(
wndPtr
->
hSysMenu
,
0
);
/* Store the dummy sysmenu handle to facilitate the refresh */
/* of the close button if the SC_CLOSE item change */
...
...
dlls/msvideo/msvideo_main.c
View file @
56a19923
...
...
@@ -1161,12 +1161,12 @@ LRESULT WINAPI ICClose(HIC hic) {
WINE_HIC
*
whic
=
GlobalLock16
(
hic
);
TRACE
(
"(0x%08lx)
\n
"
,(
DWORD
)
hic
);
if
(
whic
->
driverproc
)
{
ICSendMessage
16
(
hic
,
DRV_CLOSE
,
0
,
0
);
ICSendMessage
16
(
hic
,
DRV_DISABLE
,
0
,
0
);
ICSendMessage
16
(
hic
,
DRV_FREE
,
0
,
0
);
ICSendMessage
(
hic
,
DRV_CLOSE
,
0
,
0
);
ICSendMessage
(
hic
,
DRV_DISABLE
,
0
,
0
);
ICSendMessage
(
hic
,
DRV_FREE
,
0
,
0
);
}
else
{
CloseDriver
(
whic
->
hdrv
,
0
,
0
);
}
}
GlobalUnlock16
(
hic
);
GlobalFree16
(
hic
);
...
...
objects/clipping.c
View file @
56a19923
...
...
@@ -433,10 +433,21 @@ BOOL WINAPI PtVisible( HDC hdc, INT x, INT y )
/***********************************************************************
* RectVisible (GDI.465)
*/
BOOL16
WINAPI
RectVisible16
(
HDC16
hdc
,
const
RECT16
*
rect
)
BOOL16
WINAPI
RectVisible16
(
HDC16
hdc
,
const
RECT16
*
rect16
)
{
RECT
rect
;
CONV_RECT16TO32
(
rect16
,
&
rect
);
return
RectVisible
(
hdc
,
&
rect
);
}
/***********************************************************************
* RectVisible (GDI32.@)
*/
BOOL
WINAPI
RectVisible
(
HDC
hdc
,
const
RECT
*
rect
)
{
BOOL
ret
=
FALSE
;
RECT
16
tmpRect
;
RECT
tmpRect
;
DC
*
dc
=
DC_GetDCUpdate
(
hdc
);
if
(
!
dc
)
return
FALSE
;
TRACE
(
"%04x %d,%dx%d,%d
\n
"
,
...
...
@@ -445,12 +456,12 @@ BOOL16 WINAPI RectVisible16( HDC16 hdc, const RECT16* rect )
{
/* copy rectangle to avoid overwriting by LPtoDP */
tmpRect
=
*
rect
;
LPtoDP
16
(
hdc
,
(
LPPOINT16
)
&
tmpRect
,
2
);
LPtoDP
(
hdc
,
(
LPPOINT
)
&
tmpRect
,
2
);
tmpRect
.
left
+=
dc
->
DCOrgX
;
tmpRect
.
right
+=
dc
->
DCOrgX
;
tmpRect
.
top
+=
dc
->
DCOrgY
;
tmpRect
.
bottom
+=
dc
->
DCOrgY
;
ret
=
RectInRegion
16
(
dc
->
hGCClipRgn
,
&
tmpRect
);
ret
=
RectInRegion
(
dc
->
hGCClipRgn
,
&
tmpRect
);
}
GDI_ReleaseObj
(
hdc
);
return
ret
;
...
...
@@ -458,17 +469,6 @@ BOOL16 WINAPI RectVisible16( HDC16 hdc, const RECT16* rect )
/***********************************************************************
* RectVisible (GDI32.@)
*/
BOOL
WINAPI
RectVisible
(
HDC
hdc
,
const
RECT
*
rect
)
{
RECT16
rect16
;
CONV_RECT32TO16
(
rect
,
&
rect16
);
return
RectVisible16
(
(
HDC16
)
hdc
,
&
rect16
);
}
/***********************************************************************
* GetClipBox (GDI.77)
*/
INT16
WINAPI
GetClipBox16
(
HDC16
hdc
,
LPRECT16
rect
)
...
...
objects/palette.c
View file @
56a19923
...
...
@@ -778,10 +778,14 @@ typedef HWND WINAPI (*WindowFromDC_funcptr)( HDC );
typedef
BOOL
WINAPI
(
*
RedrawWindow_funcptr
)(
HWND
,
const
RECT
*
,
HRGN
,
UINT
);
/**********************************************************************
* UpdateColors (DISPLAY.366)
* UpdateColors16 (GDI.366)
* UpdateColors [GDI32.@] Remaps current colors to logical palette
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
INT16
WINAPI
UpdateColors16
(
HDC16
hDC
)
BOOL
WINAPI
UpdateColors
(
HDC
hDC
)
/* [in] Handle of device context */
{
HMODULE
mod
;
DC
*
dc
;
...
...
@@ -814,16 +818,12 @@ INT16 WINAPI UpdateColors16( HDC16 hDC )
/**********************************************************************
* UpdateColors [GDI32.@] Remaps current colors to logical palette
*
* RETURNS
* Success: TRUE
* Failure: FALSE
* UpdateColors (DISPLAY.366)
* UpdateColors16 (GDI.366)
*/
BOOL
WINAPI
UpdateColors
(
HDC
hDC
)
/* [in] Handle of device context */
INT16
WINAPI
UpdateColors16
(
HDC16
hDC
)
{
UpdateColors
16
(
hDC
);
UpdateColors
(
hDC
);
return
TRUE
;
}
...
...
windows/clipboard.c
View file @
56a19923
...
...
@@ -1180,9 +1180,9 @@ UINT WINAPI EnumClipboardFormats( UINT wFormat )
/**************************************************************************
* RegisterClipboardFormat
(USER.145
)
* RegisterClipboardFormat
A (USER32.@
)
*/
UINT
16
WINAPI
RegisterClipboardFormat16
(
LPCSTR
FormatName
)
UINT
WINAPI
RegisterClipboardFormatA
(
LPCSTR
FormatName
)
{
LPWINE_CLIPFORMAT
lpNewFormat
;
LPWINE_CLIPFORMAT
lpFormat
=
ClipFormats
;
...
...
@@ -1240,11 +1240,11 @@ UINT16 WINAPI RegisterClipboardFormat16( LPCSTR FormatName )
/**************************************************************************
* RegisterClipboardFormat
A (USER32.@
)
* RegisterClipboardFormat
(USER.145
)
*/
UINT
WINAPI
RegisterClipboardFormatA
(
LPCSTR
f
ormatName
)
UINT
16
WINAPI
RegisterClipboardFormat16
(
LPCSTR
F
ormatName
)
{
return
RegisterClipboardFormat
16
(
f
ormatName
);
return
RegisterClipboardFormat
A
(
F
ormatName
);
}
...
...
windows/mdi.c
View file @
56a19923
...
...
@@ -2343,7 +2343,7 @@ void WINAPI ScrollChildren(HWND hWnd, UINT uMsg, WPARAM wParam,
newPos
=
maxPos
;
break
;
case
SB_ENDSCROLL
:
CalcChildScroll
16
(
hWnd
,(
uMsg
==
WM_VSCROLL
)
?
SB_VERT
:
SB_HORZ
);
CalcChildScroll
(
hWnd
,(
uMsg
==
WM_VSCROLL
)
?
SB_VERT
:
SB_HORZ
);
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment