Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ce002000
Commit
ce002000
authored
Oct 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Use the debugstr_fourcc function instead of reimplementing it.
parent
6da1c970
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
25 deletions
+17
-25
mscms_priv.h
dlls/mscms/mscms_priv.h
+0
-2
profile.c
dlls/mscms/profile.c
+11
-17
stub.c
dlls/mscms/stub.c
+5
-5
transform.c
dlls/mscms/transform.c
+1
-1
No files found.
dlls/mscms/mscms_priv.h
View file @
ce002000
...
...
@@ -76,5 +76,3 @@ extern BOOL get_tag_data( const struct profile *, TAGTYPE, DWORD, void *, DWORD
extern
BOOL
set_tag_data
(
const
struct
profile
*
,
TAGTYPE
,
DWORD
,
const
void
*
,
DWORD
*
);
extern
void
get_profile_header
(
const
struct
profile
*
,
PROFILEHEADER
*
);
extern
void
set_profile_header
(
const
struct
profile
*
,
const
PROFILEHEADER
*
);
extern
const
char
*
dbgstr_tag
(
DWORD
);
dlls/mscms/profile.c
View file @
ce002000
...
...
@@ -51,12 +51,6 @@ static inline WCHAR *strdupW( const char *str )
return
ret
;
}
const
char
*
dbgstr_tag
(
DWORD
tag
)
{
return
wine_dbg_sprintf
(
"'%c%c%c%c'"
,
(
char
)(
tag
>>
24
),
(
char
)(
tag
>>
16
),
(
char
)(
tag
>>
8
),
(
char
)(
tag
)
);
}
WINE_DEFAULT_DEBUG_CHANNEL
(
mscms
);
/******************************************************************************
...
...
@@ -671,36 +665,36 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if
(
rec
->
dwFields
&
ET_DEVICECLASS
)
{
FIXME
(
"ET_DEVICECLASS: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwMediaType
)
);
FIXME
(
"ET_DEVICECLASS: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwMediaType
)
);
}
if
(
rec
->
dwFields
&
ET_CMMTYPE
)
{
TRACE
(
"ET_CMMTYPE: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwCMMType
)
);
TRACE
(
"ET_CMMTYPE: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwCMMType
)
);
if
(
rec
->
dwCMMType
!=
hdr
->
phCMMType
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_CLASS
)
{
TRACE
(
"ET_CLASS: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwClass
)
);
TRACE
(
"ET_CLASS: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwClass
)
);
if
(
rec
->
dwClass
!=
hdr
->
phClass
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_DATACOLORSPACE
)
{
TRACE
(
"ET_DATACOLORSPACE: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwDataColorSpace
)
);
TRACE
(
"ET_DATACOLORSPACE: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwDataColorSpace
)
);
if
(
rec
->
dwDataColorSpace
!=
hdr
->
phDataColorSpace
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_CONNECTIONSPACE
)
{
TRACE
(
"ET_CONNECTIONSPACE: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwConnectionSpace
)
);
TRACE
(
"ET_CONNECTIONSPACE: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwConnectionSpace
)
);
if
(
rec
->
dwConnectionSpace
!=
hdr
->
phConnectionSpace
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_SIGNATURE
)
{
TRACE
(
"ET_SIGNATURE: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwSignature
)
);
TRACE
(
"ET_SIGNATURE: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwSignature
)
);
if
(
rec
->
dwSignature
!=
hdr
->
phSignature
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_PLATFORM
)
{
TRACE
(
"ET_PLATFORM: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwPlatform
)
);
TRACE
(
"ET_PLATFORM: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwPlatform
)
);
if
(
rec
->
dwPlatform
!=
hdr
->
phPlatform
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_PROFILEFLAGS
)
...
...
@@ -710,12 +704,12 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if
(
rec
->
dwFields
&
ET_MANUFACTURER
)
{
TRACE
(
"ET_MANUFACTURER: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwManufacturer
)
);
TRACE
(
"ET_MANUFACTURER: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwManufacturer
)
);
if
(
rec
->
dwManufacturer
!=
hdr
->
phManufacturer
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_MODEL
)
{
TRACE
(
"ET_MODEL: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwModel
)
);
TRACE
(
"ET_MODEL: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwModel
)
);
if
(
rec
->
dwModel
!=
hdr
->
phModel
)
return
FALSE
;
}
if
(
rec
->
dwFields
&
ET_ATTRIBUTES
)
...
...
@@ -732,7 +726,7 @@ static BOOL match_profile( PENUMTYPEW rec, PPROFILEHEADER hdr )
}
if
(
rec
->
dwFields
&
ET_CREATOR
)
{
TRACE
(
"ET_CREATOR: %s
\n
"
,
d
bgstr_tag
(
rec
->
dwCreator
)
);
TRACE
(
"ET_CREATOR: %s
\n
"
,
d
ebugstr_fourcc
(
rec
->
dwCreator
)
);
if
(
rec
->
dwCreator
!=
hdr
->
phCreator
)
return
FALSE
;
}
return
TRUE
;
...
...
@@ -1448,7 +1442,7 @@ BOOL WINAPI CloseColorProfile( HPROFILE handle )
*/
BOOL
WINAPI
WcsGetUsePerUserProfiles
(
const
WCHAR
*
name
,
DWORD
class
,
BOOL
*
use_per_user_profile
)
{
FIXME
(
"%s %s %p
\n
"
,
debugstr_w
(
name
),
d
bgstr_tag
(
class
),
use_per_user_profile
);
FIXME
(
"%s %s %p
\n
"
,
debugstr_w
(
name
),
d
ebugstr_fourcc
(
class
),
use_per_user_profile
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
...
...
dlls/mscms/stub.c
View file @
ce002000
...
...
@@ -135,21 +135,21 @@ BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, P
BOOL
WINAPI
RegisterCMMA
(
PCSTR
machine
,
DWORD
id
,
PCSTR
dll
)
{
FIXME
(
"( %p, %s, %p ) stub
\n
"
,
machine
,
d
bgstr_tag
(
id
),
dll
);
FIXME
(
"( %p, %s, %p ) stub
\n
"
,
machine
,
d
ebugstr_fourcc
(
id
),
dll
);
return
TRUE
;
}
BOOL
WINAPI
RegisterCMMW
(
PCWSTR
machine
,
DWORD
id
,
PCWSTR
dll
)
{
FIXME
(
"( %p, %s, %p ) stub
\n
"
,
machine
,
d
bgstr_tag
(
id
),
dll
);
FIXME
(
"( %p, %s, %p ) stub
\n
"
,
machine
,
d
ebugstr_fourcc
(
id
),
dll
);
return
TRUE
;
}
BOOL
WINAPI
SelectCMM
(
DWORD
id
)
{
FIXME
(
"(%s) stub
\n
"
,
d
bgstr_tag
(
id
)
);
FIXME
(
"(%s) stub
\n
"
,
d
ebugstr_fourcc
(
id
)
);
return
TRUE
;
}
...
...
@@ -188,14 +188,14 @@ BOOL WINAPI SpoolerCopyFileEvent( LPWSTR printer, LPWSTR key, DWORD event )
BOOL
WINAPI
UnregisterCMMA
(
PCSTR
machine
,
DWORD
id
)
{
FIXME
(
"( %p, %s ) stub
\n
"
,
machine
,
d
bgstr_tag
(
id
)
);
FIXME
(
"( %p, %s ) stub
\n
"
,
machine
,
d
ebugstr_fourcc
(
id
)
);
return
TRUE
;
}
BOOL
WINAPI
UnregisterCMMW
(
PCWSTR
machine
,
DWORD
id
)
{
FIXME
(
"( %p, %s ) stub
\n
"
,
machine
,
d
bgstr_tag
(
id
)
);
FIXME
(
"( %p, %s ) stub
\n
"
,
machine
,
d
ebugstr_fourcc
(
id
)
);
return
TRUE
;
}
dlls/mscms/transform.c
View file @
ce002000
...
...
@@ -146,7 +146,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
intent
=
space
->
lcsIntent
>
3
?
INTENT_PERCEPTUAL
:
space
->
lcsIntent
;
TRACE
(
"lcsIntent: %#lx
\n
"
,
space
->
lcsIntent
);
TRACE
(
"lcsCSType: %s
\n
"
,
d
bgstr_tag
(
space
->
lcsCSType
)
);
TRACE
(
"lcsCSType: %s
\n
"
,
d
ebugstr_fourcc
(
space
->
lcsCSType
)
);
TRACE
(
"lcsFilename: %s
\n
"
,
debugstr_w
(
space
->
lcsFilename
)
);
input
=
cmsCreate_sRGBProfile
();
/* FIXME: create from supplied color space */
...
...
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