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
9312f0f9
Commit
9312f0f9
authored
May 28, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Constify some variables.
parent
a7e82e68
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
+17
-17
handle.c
dlls/mscms/handle.c
+1
-1
icc.c
dlls/mscms/icc.c
+8
-8
mscms_priv.h
dlls/mscms/mscms_priv.h
+7
-7
profile.c
dlls/mscms/profile.c
+1
-1
No files found.
dlls/mscms/handle.c
View file @
9312f0f9
...
@@ -153,7 +153,7 @@ cmsHPROFILE MSCMS_hprofile2cmsprofile( HPROFILE profile )
...
@@ -153,7 +153,7 @@ cmsHPROFILE MSCMS_hprofile2cmsprofile( HPROFILE profile )
return
cmsprofile
;
return
cmsprofile
;
}
}
HPROFILE
MSCMS_iccprofile2hprofile
(
icProfile
*
iccprofile
)
HPROFILE
MSCMS_iccprofile2hprofile
(
const
icProfile
*
iccprofile
)
{
{
HPROFILE
profile
=
NULL
;
HPROFILE
profile
=
NULL
;
DWORD_PTR
i
;
DWORD_PTR
i
;
...
...
dlls/mscms/icc.c
View file @
9312f0f9
...
@@ -40,7 +40,7 @@ static inline void MSCMS_adjust_endianess32( ULONG *ptr )
...
@@ -40,7 +40,7 @@ static inline void MSCMS_adjust_endianess32( ULONG *ptr )
#endif
#endif
}
}
void
MSCMS_get_profile_header
(
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
)
void
MSCMS_get_profile_header
(
const
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
)
{
{
unsigned
int
i
;
unsigned
int
i
;
...
@@ -51,7 +51,7 @@ void MSCMS_get_profile_header( icProfile *iccprofile, PROFILEHEADER *header )
...
@@ -51,7 +51,7 @@ void MSCMS_get_profile_header( icProfile *iccprofile, PROFILEHEADER *header )
MSCMS_adjust_endianess32
(
(
ULONG
*
)
header
+
i
);
MSCMS_adjust_endianess32
(
(
ULONG
*
)
header
+
i
);
}
}
void
MSCMS_set_profile_header
(
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
)
void
MSCMS_set_profile_header
(
icProfile
*
iccprofile
,
const
PROFILEHEADER
*
header
)
{
{
unsigned
int
i
;
unsigned
int
i
;
icHeader
*
iccheader
=
(
icHeader
*
)
iccprofile
;
icHeader
*
iccheader
=
(
icHeader
*
)
iccprofile
;
...
@@ -63,7 +63,7 @@ void MSCMS_set_profile_header( icProfile *iccprofile, PROFILEHEADER *header )
...
@@ -63,7 +63,7 @@ void MSCMS_set_profile_header( icProfile *iccprofile, PROFILEHEADER *header )
MSCMS_adjust_endianess32
(
(
ULONG
*
)
iccheader
+
i
);
MSCMS_adjust_endianess32
(
(
ULONG
*
)
iccheader
+
i
);
}
}
DWORD
MSCMS_get_tag_count
(
icProfile
*
iccprofile
)
DWORD
MSCMS_get_tag_count
(
const
icProfile
*
iccprofile
)
{
{
ULONG
count
=
iccprofile
->
count
;
ULONG
count
=
iccprofile
->
count
;
...
@@ -84,19 +84,19 @@ void MSCMS_get_tag_by_index( icProfile *iccprofile, DWORD index, icTag *tag )
...
@@ -84,19 +84,19 @@ void MSCMS_get_tag_by_index( icProfile *iccprofile, DWORD index, icTag *tag )
MSCMS_adjust_endianess32
(
(
ULONG
*
)
&
tag
->
size
);
MSCMS_adjust_endianess32
(
(
ULONG
*
)
&
tag
->
size
);
}
}
void
MSCMS_get_tag_data
(
icProfile
*
iccprofile
,
icTag
*
tag
,
DWORD
offset
,
void
*
buffer
)
void
MSCMS_get_tag_data
(
const
icProfile
*
iccprofile
,
const
icTag
*
tag
,
DWORD
offset
,
void
*
buffer
)
{
{
memcpy
(
buffer
,
(
char
*
)
iccprofile
+
tag
->
offset
+
offset
,
tag
->
size
-
offset
);
memcpy
(
buffer
,
(
c
onst
c
har
*
)
iccprofile
+
tag
->
offset
+
offset
,
tag
->
size
-
offset
);
}
}
void
MSCMS_set_tag_data
(
icProfile
*
iccprofile
,
icTag
*
tag
,
DWORD
offset
,
void
*
buffer
)
void
MSCMS_set_tag_data
(
icProfile
*
iccprofile
,
const
icTag
*
tag
,
DWORD
offset
,
const
void
*
buffer
)
{
{
memcpy
(
(
char
*
)
iccprofile
+
tag
->
offset
+
offset
,
buffer
,
tag
->
size
-
offset
);
memcpy
(
(
char
*
)
iccprofile
+
tag
->
offset
+
offset
,
buffer
,
tag
->
size
-
offset
);
}
}
DWORD
MSCMS_get_profile_size
(
icProfile
*
iccprofile
)
DWORD
MSCMS_get_profile_size
(
const
icProfile
*
iccprofile
)
{
{
DWORD
size
=
((
icHeader
*
)
iccprofile
)
->
size
;
DWORD
size
=
((
const
icHeader
*
)
iccprofile
)
->
size
;
MSCMS_adjust_endianess32
(
(
ULONG
*
)
&
size
);
MSCMS_adjust_endianess32
(
(
ULONG
*
)
&
size
);
return
size
;
return
size
;
...
...
dlls/mscms/mscms_priv.h
View file @
9312f0f9
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
extern
DWORD
MSCMS_hprofile2access
(
HPROFILE
);
extern
DWORD
MSCMS_hprofile2access
(
HPROFILE
);
extern
HPROFILE
MSCMS_handle2hprofile
(
HANDLE
file
);
extern
HPROFILE
MSCMS_handle2hprofile
(
HANDLE
file
);
extern
HPROFILE
MSCMS_cmsprofile2hprofile
(
cmsHPROFILE
cmsprofile
);
extern
HPROFILE
MSCMS_cmsprofile2hprofile
(
cmsHPROFILE
cmsprofile
);
extern
HPROFILE
MSCMS_iccprofile2hprofile
(
icProfile
*
iccprofile
);
extern
HPROFILE
MSCMS_iccprofile2hprofile
(
const
icProfile
*
iccprofile
);
extern
HANDLE
MSCMS_hprofile2handle
(
HPROFILE
profile
);
extern
HANDLE
MSCMS_hprofile2handle
(
HPROFILE
profile
);
extern
cmsHPROFILE
MSCMS_hprofile2cmsprofile
(
HPROFILE
profile
);
extern
cmsHPROFILE
MSCMS_hprofile2cmsprofile
(
HPROFILE
profile
);
extern
icProfile
*
MSCMS_hprofile2iccprofile
(
HPROFILE
profile
);
extern
icProfile
*
MSCMS_hprofile2iccprofile
(
HPROFILE
profile
);
...
@@ -82,12 +82,12 @@ extern cmsHTRANSFORM MSCMS_htransform2cmstransform( HTRANSFORM transform );
...
@@ -82,12 +82,12 @@ extern cmsHTRANSFORM MSCMS_htransform2cmstransform( HTRANSFORM transform );
extern
HTRANSFORM
MSCMS_create_htransform_handle
(
cmsHTRANSFORM
cmstransform
);
extern
HTRANSFORM
MSCMS_create_htransform_handle
(
cmsHTRANSFORM
cmstransform
);
extern
void
MSCMS_destroy_htransform_handle
(
HTRANSFORM
transform
);
extern
void
MSCMS_destroy_htransform_handle
(
HTRANSFORM
transform
);
extern
DWORD
MSCMS_get_tag_count
(
icProfile
*
iccprofile
);
extern
DWORD
MSCMS_get_tag_count
(
const
icProfile
*
iccprofile
);
extern
void
MSCMS_get_tag_by_index
(
icProfile
*
iccprofile
,
DWORD
index
,
icTag
*
tag
);
extern
void
MSCMS_get_tag_by_index
(
icProfile
*
iccprofile
,
DWORD
index
,
icTag
*
tag
);
extern
void
MSCMS_get_tag_data
(
icProfile
*
iccprofile
,
icTag
*
tag
,
DWORD
offset
,
void
*
buffer
);
extern
void
MSCMS_get_tag_data
(
const
icProfile
*
iccprofile
,
const
icTag
*
tag
,
DWORD
offset
,
void
*
buffer
);
extern
void
MSCMS_set_tag_data
(
icProfile
*
iccprofile
,
icTag
*
tag
,
DWORD
offset
,
void
*
buffer
);
extern
void
MSCMS_set_tag_data
(
icProfile
*
iccprofile
,
const
icTag
*
tag
,
DWORD
offset
,
const
void
*
buffer
);
extern
void
MSCMS_get_profile_header
(
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
);
extern
void
MSCMS_get_profile_header
(
const
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
);
extern
void
MSCMS_set_profile_header
(
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
);
extern
void
MSCMS_set_profile_header
(
icProfile
*
iccprofile
,
const
PROFILEHEADER
*
header
);
extern
DWORD
MSCMS_get_profile_size
(
icProfile
*
iccprofile
);
extern
DWORD
MSCMS_get_profile_size
(
const
icProfile
*
iccprofile
);
#endif
/* HAVE_LCMS */
#endif
/* HAVE_LCMS */
dlls/mscms/profile.c
View file @
9312f0f9
...
@@ -471,7 +471,7 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
...
@@ -471,7 +471,7 @@ BOOL WINAPI GetStandardColorSpaceProfileW( PCWSTR machine, DWORD id, PWSTR profi
return
TRUE
;
return
TRUE
;
}
}
static
BOOL
MSCMS_header_from_file
(
LPWSTR
file
,
PPROFILEHEADER
header
)
static
BOOL
MSCMS_header_from_file
(
LP
C
WSTR
file
,
PPROFILEHEADER
header
)
{
{
BOOL
ret
;
BOOL
ret
;
PROFILE
profile
;
PROFILE
profile
;
...
...
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