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
1033ffe4
Commit
1033ffe4
authored
Aug 29, 2002
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert HPALETTE to a void*.
parent
a0b32d7c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
msvideo16.c
dlls/msvideo/msvideo16.c
+0
-2
msvideo_main.c
dlls/msvideo/msvideo_main.c
+1
-1
vfw16.h
dlls/msvideo/vfw16.h
+4
-0
palette.c
graphics/x11drv/palette.c
+1
-1
windef.h
include/windef.h
+1
-1
No files found.
dlls/msvideo/msvideo16.c
View file @
1033ffe4
...
...
@@ -32,13 +32,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvideo);
#define HDC_32(h16) ((HDC)(ULONG_PTR)(h16))
#define HDRAWDIB_32(h16) ((HDRAWDIB)(ULONG_PTR)(h16))
#define HIC_32(h16) ((HIC)(ULONG_PTR)(h16))
#define HPALETTE_32(h16) ((HPALETTE)(ULONG_PTR)(h16))
/* handle --> handle16 conversions */
#define HDC_16(h32) (LOWORD(h32))
#define HDRAWDIB_16(h32) (LOWORD(h32))
#define HIC_16(h32) (LOWORD(h32))
#define HPALETTE_16(h32) (LOWORD(h32))
/***********************************************************************
...
...
dlls/msvideo/msvideo_main.c
View file @
1033ffe4
...
...
@@ -672,7 +672,7 @@ LPVOID MSVIDEO_MapMsg16To32(UINT msg, LPDWORD lParam1, LPDWORD lParam2) {
ret
=
icdb16
;
COPY
(
icdb
,
dwFlags
);
COPY
(
icdb
,
hpal
);
icdb
->
hpal
=
HPALETTE_32
(
icdb16
->
hpal
);
COPY
(
icdb
,
hwnd
);
COPY
(
icdb
,
hdc
);
COPY
(
icdb
,
xDst
);
...
...
dlls/msvideo/vfw16.h
View file @
1033ffe4
...
...
@@ -117,6 +117,10 @@ HIC16 VFWAPI ICOpen16(DWORD,DWORD,UINT16);
HIC16
VFWAPI
ICOpenFunction16
(
DWORD
,
DWORD
,
UINT16
,
FARPROC16
);
LRESULT
VFWAPI
ICSendMessage16
(
HIC16
,
UINT16
,
DWORD
,
DWORD
);
/* handle <-> handle16 conversions */
#define HPALETTE_32(h16) ((HPALETTE)(ULONG_PTR)(h16))
#define HPALETTE_16(h32) (LOWORD(h32))
#ifdef __cplusplus
}
#endif
/* __cplusplus */
...
...
graphics/x11drv/palette.c
View file @
1033ffe4
...
...
@@ -829,7 +829,7 @@ int X11DRV_PALETTE_ToPhysical( X11DRV_PDEVICE *physDev, COLORREF color )
{
DC
*
dc
=
physDev
?
physDev
->
dc
:
NULL
;
WORD
index
=
0
;
HPALETTE
16
hPal
=
(
dc
)
?
dc
->
hPalette
:
GetStockObject
(
DEFAULT_PALETTE
);
HPALETTE
hPal
=
(
dc
)
?
dc
->
hPalette
:
GetStockObject
(
DEFAULT_PALETTE
);
unsigned
char
spec_type
=
color
>>
24
;
PALETTEOBJ
*
palPtr
=
(
PALETTEOBJ
*
)
GDI_GetObjPtr
(
hPal
,
PALETTE_MAGIC
);
...
...
include/windef.h
View file @
1033ffe4
...
...
@@ -87,7 +87,7 @@ DECLARE_HANDLE(HKL);
DECLARE_OLD_HANDLE
(
HMENU
);
DECLARE_HANDLE
(
HMETAFILE
);
DECLARE_HANDLE
(
HMONITOR
);
DECLARE_
OLD_
HANDLE
(
HPALETTE
);
DECLARE_HANDLE
(
HPALETTE
);
DECLARE_OLD_HANDLE
(
HPEN
);
DECLARE_OLD_HANDLE
(
HRGN
);
DECLARE_OLD_HANDLE
(
HRSRC
);
...
...
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