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
0839dabd
Commit
0839dabd
authored
Oct 26, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Move EnumICMProfiles to the driver.
parent
971ce6c4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
4 deletions
+71
-4
driver.c
dlls/gdi32/driver.c
+1
-0
init.c
dlls/gdi32/enhmfdrv/init.c
+1
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+1
-0
icm.c
dlls/gdi32/icm.c
+67
-4
init.c
dlls/gdi32/mfdrv/init.c
+1
-0
No files found.
dlls/gdi32/driver.c
View file @
0839dabd
...
...
@@ -96,6 +96,7 @@ static struct graphics_driver *create_driver( HMODULE module )
GET_FUNC
(
EndPage
);
GET_FUNC
(
EndPath
);
GET_FUNC
(
EnumDeviceFonts
);
GET_FUNC
(
EnumICMProfiles
);
GET_FUNC
(
ExcludeClipRect
);
GET_FUNC
(
ExtDeviceMode
);
GET_FUNC
(
ExtEscape
);
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
0839dabd
...
...
@@ -58,6 +58,7 @@ static const DC_FUNCTIONS EMFDRV_Funcs =
NULL
,
/* pEndPage */
EMFDRV_EndPath
,
/* pEndPath */
NULL
,
/* pEnumDeviceFonts */
NULL
,
/* pEnumICMProfiles */
EMFDRV_ExcludeClipRect
,
/* pExcludeClipRect */
NULL
,
/* pExtDeviceMode */
NULL
,
/* pExtEscape */
...
...
dlls/gdi32/gdi_private.h
View file @
0839dabd
...
...
@@ -99,6 +99,7 @@ typedef struct tagDC_FUNCS
INT
(
CDECL
*
pEndDoc
)(
PHYSDEV
);
INT
(
CDECL
*
pEndPage
)(
PHYSDEV
);
BOOL
(
CDECL
*
pEndPath
)(
PHYSDEV
);
INT
(
CDECL
*
pEnumICMProfiles
)(
PHYSDEV
,
ICMENUMPROCW
,
LPARAM
);
BOOL
(
CDECL
*
pEnumDeviceFonts
)(
PHYSDEV
,
LPLOGFONTW
,
FONTENUMPROCW
,
LPARAM
);
INT
(
CDECL
*
pExcludeClipRect
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
);
INT
(
CDECL
*
pExtDeviceMode
)(
LPSTR
,
HWND
,
LPDEVMODEA
,
LPSTR
,
LPSTR
,
LPDEVMODEA
,
LPSTR
,
DWORD
);
...
...
dlls/gdi32/icm.c
View file @
0839dabd
...
...
@@ -38,13 +38,60 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
icm
);
struct
enum_profiles
{
BOOL
unicode
;
union
{
ICMENUMPROCA
funcA
;
ICMENUMPROCW
funcW
;
}
callback
;
LPARAM
data
;
};
INT
CALLBACK
enum_profiles_callback
(
LPWSTR
filename
,
LPARAM
lparam
)
{
int
len
,
ret
=
-
1
;
struct
enum_profiles
*
ep
=
(
struct
enum_profiles
*
)
lparam
;
char
*
filenameA
;
if
(
ep
->
unicode
)
return
ep
->
callback
.
funcW
(
filename
,
ep
->
data
);
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
filenameA
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
filenameA
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
filename
,
-
1
,
filenameA
,
len
,
NULL
,
NULL
);
ret
=
ep
->
callback
.
funcA
(
filenameA
,
ep
->
data
);
HeapFree
(
GetProcessHeap
(),
0
,
filenameA
);
}
return
ret
;
}
/***********************************************************************
* EnumICMProfilesA (GDI32.@)
*/
INT
WINAPI
EnumICMProfilesA
(
HDC
hdc
,
ICMENUMPROCA
func
,
LPARAM
lparam
)
{
FIXME
(
"%p, %p, 0x%08lx stub
\n
"
,
hdc
,
func
,
lparam
);
return
-
1
;
INT
ret
=
-
1
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
TRACE
(
"%p, %p, 0x%08lx
\n
"
,
hdc
,
func
,
lparam
);
if
(
dc
)
{
if
(
dc
->
funcs
->
pEnumICMProfiles
)
{
struct
enum_profiles
ep
;
ep
.
unicode
=
FALSE
;
ep
.
callback
.
funcA
=
func
;
ep
.
data
=
lparam
;
ret
=
dc
->
funcs
->
pEnumICMProfiles
(
dc
->
physDev
,
enum_profiles_callback
,
(
LPARAM
)
&
ep
);
}
release_dc_ptr
(
dc
);
}
return
ret
;
}
/***********************************************************************
...
...
@@ -52,8 +99,24 @@ INT WINAPI EnumICMProfilesA(HDC hdc, ICMENUMPROCA func, LPARAM lparam)
*/
INT
WINAPI
EnumICMProfilesW
(
HDC
hdc
,
ICMENUMPROCW
func
,
LPARAM
lparam
)
{
FIXME
(
"%p, %p, 0x%08lx stub
\n
"
,
hdc
,
func
,
lparam
);
return
-
1
;
INT
ret
=
-
1
;
DC
*
dc
=
get_dc_ptr
(
hdc
);
TRACE
(
"%p, %p, 0x%08lx
\n
"
,
hdc
,
func
,
lparam
);
if
(
dc
)
{
if
(
dc
->
funcs
->
pEnumICMProfiles
)
{
struct
enum_profiles
ep
;
ep
.
unicode
=
TRUE
;
ep
.
callback
.
funcW
=
func
;
ep
.
data
=
lparam
;
ret
=
dc
->
funcs
->
pEnumICMProfiles
(
dc
->
physDev
,
enum_profiles_callback
,
(
LPARAM
)
&
ep
);
}
release_dc_ptr
(
dc
);
}
return
ret
;
}
/**********************************************************************
...
...
dlls/gdi32/mfdrv/init.c
View file @
0839dabd
...
...
@@ -56,6 +56,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL
,
/* pEndPage */
MFDRV_EndPath
,
/* pEndPath */
NULL
,
/* pEnumDeviceFonts */
NULL
,
/* pEnumICMProfiles */
MFDRV_ExcludeClipRect
,
/* pExcludeClipRect */
NULL
,
/* pExtDeviceMode */
MFDRV_ExtEscape
,
/* pExtEscape */
...
...
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