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
bb72a06e
Commit
bb72a06e
authored
Jul 18, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make lcms support depend on headers _and_ libraries, not just the
headers.
parent
48533ae9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
40 deletions
+36
-40
handle.c
dlls/mscms/handle.c
+2
-2
icc.c
dlls/mscms/icc.c
+2
-2
mscms_priv.h
dlls/mscms/mscms_priv.h
+2
-6
profile.c
dlls/mscms/profile.c
+22
-22
transform.c
dlls/mscms/transform.c
+8
-8
No files found.
dlls/mscms/handle.c
View file @
bb72a06e
...
...
@@ -29,7 +29,7 @@
#include "mscms_priv.h"
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
static
CRITICAL_SECTION
MSCMS_handle_cs
;
static
CRITICAL_SECTION_DEBUG
MSCMS_handle_cs_debug
=
...
...
@@ -284,4 +284,4 @@ void MSCMS_destroy_htransform_handle( HTRANSFORM transform )
}
}
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
dlls/mscms/icc.c
View file @
bb72a06e
...
...
@@ -36,7 +36,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mscms
);
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
static
inline
void
MSCMS_adjust_endianess32
(
ULONG
*
ptr
)
{
...
...
@@ -107,4 +107,4 @@ DWORD MSCMS_get_profile_size( icProfile *iccprofile )
return
size
;
}
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
dlls/mscms/mscms_priv.h
View file @
bb72a06e
...
...
@@ -18,11 +18,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef HAVE_LCMS_LCMS_H
#define HAVE_LCMS_H 1
#endif
#ifdef HAVE_LCMS_H
#ifdef HAVE_LCMS
/* These basic Windows types are defined in lcms.h when compiling on
* a non-Windows platform (why?), so they would normally not conflict
...
...
@@ -92,4 +88,4 @@ extern void MSCMS_get_profile_header( icProfile *iccprofile, PROFILEHEADER *head
extern
void
MSCMS_set_profile_header
(
icProfile
*
iccprofile
,
PROFILEHEADER
*
header
);
extern
DWORD
MSCMS_get_profile_size
(
icProfile
*
iccprofile
);
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
dlls/mscms/profile.c
View file @
bb72a06e
...
...
@@ -148,7 +148,7 @@ BOOL WINAPI GetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
PVOID
buffer
,
PBOOL
ref
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
DWORD
i
,
count
;
icTag
tag
;
...
...
@@ -177,7 +177,7 @@ BOOL WINAPI GetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
}
}
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -202,7 +202,7 @@ BOOL WINAPI GetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
BOOL
WINAPI
GetColorProfileElementTag
(
HPROFILE
profile
,
DWORD
index
,
PTAGTYPE
type
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
DWORD
count
;
icTag
tag
;
...
...
@@ -219,7 +219,7 @@ BOOL WINAPI GetColorProfileElementTag( HPROFILE profile, DWORD index, PTAGTYPE t
ret
=
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -244,7 +244,7 @@ BOOL WINAPI GetColorProfileElementTag( HPROFILE profile, DWORD index, PTAGTYPE t
BOOL
WINAPI
GetColorProfileFromHandle
(
HPROFILE
profile
,
PBYTE
buffer
,
PDWORD
size
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
PROFILEHEADER
header
;
...
...
@@ -265,7 +265,7 @@ BOOL WINAPI GetColorProfileFromHandle( HPROFILE profile, PBYTE buffer, PDWORD si
*
size
=
header
.
phSize
;
ret
=
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -288,7 +288,7 @@ BOOL WINAPI GetColorProfileFromHandle( HPROFILE profile, PBYTE buffer, PDWORD si
BOOL
WINAPI
GetColorProfileHeader
(
HPROFILE
profile
,
PPROFILEHEADER
header
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
TRACE
(
"( %p, %p )
\n
"
,
profile
,
header
);
...
...
@@ -298,7 +298,7 @@ BOOL WINAPI GetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
MSCMS_get_profile_header
(
iccprofile
,
header
);
return
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -319,7 +319,7 @@ BOOL WINAPI GetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
BOOL
WINAPI
GetCountColorProfileElements
(
HPROFILE
profile
,
PDWORD
count
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
TRACE
(
"( %p, %p )
\n
"
,
profile
,
count
);
...
...
@@ -328,7 +328,7 @@ BOOL WINAPI GetCountColorProfileElements( HPROFILE profile, PDWORD count )
*
count
=
MSCMS_get_tag_count
(
iccprofile
);
ret
=
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -508,7 +508,7 @@ BOOL WINAPI InstallColorProfileW( PCWSTR machine, PCWSTR profile )
BOOL
WINAPI
IsColorProfileTagPresent
(
HPROFILE
profile
,
TAGTYPE
type
,
PBOOL
present
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
DWORD
i
,
count
;
icTag
tag
;
...
...
@@ -530,7 +530,7 @@ BOOL WINAPI IsColorProfileTagPresent( HPROFILE profile, TAGTYPE type, PBOOL pres
}
}
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -551,7 +551,7 @@ BOOL WINAPI IsColorProfileTagPresent( HPROFILE profile, TAGTYPE type, PBOOL pres
BOOL
WINAPI
IsColorProfileValid
(
HPROFILE
profile
,
PBOOL
valid
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
TRACE
(
"( %p, %p )
\n
"
,
profile
,
valid
);
...
...
@@ -559,7 +559,7 @@ BOOL WINAPI IsColorProfileValid( HPROFILE profile, PBOOL valid )
if
(
!
valid
)
return
FALSE
;
if
(
iccprofile
)
return
*
valid
=
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -584,7 +584,7 @@ BOOL WINAPI SetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
PVOID
buffer
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
DWORD
i
,
count
,
access
=
MSCMS_hprofile2access
(
profile
);
icTag
tag
;
...
...
@@ -609,7 +609,7 @@ BOOL WINAPI SetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
}
}
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -629,7 +629,7 @@ BOOL WINAPI SetColorProfileElement( HPROFILE profile, TAGTYPE type, DWORD offset
BOOL
WINAPI
SetColorProfileHeader
(
HPROFILE
profile
,
PPROFILEHEADER
header
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
DWORD
access
=
MSCMS_hprofile2access
(
profile
);
...
...
@@ -641,7 +641,7 @@ BOOL WINAPI SetColorProfileHeader( HPROFILE profile, PPROFILEHEADER header )
MSCMS_set_profile_header
(
iccprofile
,
header
);
return
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -763,7 +763,7 @@ HPROFILE WINAPI OpenColorProfileA( PPROFILE profile, DWORD access, DWORD sharing
*/
HPROFILE
WINAPI
OpenColorProfileW
(
PPROFILE
profile
,
DWORD
access
,
DWORD
sharing
,
DWORD
creation
)
{
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
cmsHPROFILE
cmsprofile
=
NULL
;
icProfile
*
iccprofile
=
NULL
;
HANDLE
handle
=
NULL
;
...
...
@@ -831,7 +831,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
if
(
cmsprofile
)
return
MSCMS_create_hprofile_handle
(
handle
,
iccprofile
,
cmsprofile
,
access
);
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
NULL
;
}
...
...
@@ -850,7 +850,7 @@ HPROFILE WINAPI OpenColorProfileW( PPROFILE profile, DWORD access, DWORD sharing
BOOL
WINAPI
CloseColorProfile
(
HPROFILE
profile
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
icProfile
*
iccprofile
=
MSCMS_hprofile2iccprofile
(
profile
);
HANDLE
file
=
MSCMS_hprofile2handle
(
profile
);
DWORD
access
=
MSCMS_hprofile2access
(
profile
);
...
...
@@ -872,6 +872,6 @@ BOOL WINAPI CloseColorProfile( HPROFILE profile )
CloseHandle
(
MSCMS_hprofile2handle
(
profile
)
);
MSCMS_destroy_hprofile_handle
(
profile
);
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
dlls/mscms/transform.c
View file @
bb72a06e
...
...
@@ -57,7 +57,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
HPROFILE
target
,
DWORD
flags
)
{
HTRANSFORM
ret
=
NULL
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
cmsHTRANSFORM
cmstransform
;
cmsHPROFILE
cmsprofiles
[
3
];
int
intent
;
...
...
@@ -84,7 +84,7 @@ HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest,
}
ret
=
MSCMS_create_htransform_handle
(
cmstransform
);
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -92,7 +92,7 @@ HTRANSFORM WINAPI CreateMultiProfileTransform( PHPROFILE profiles, DWORD nprofil
PDWORD
intents
,
DWORD
nintents
,
DWORD
flags
,
DWORD
cmm
)
{
HTRANSFORM
ret
=
NULL
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
cmsHPROFILE
*
cmsprofiles
;
cmsHTRANSFORM
cmstransform
;
DWORD
i
;
...
...
@@ -115,14 +115,14 @@ HTRANSFORM WINAPI CreateMultiProfileTransform( PHPROFILE profiles, DWORD nprofil
HeapFree
(
GetProcessHeap
(),
0
,
cmsprofiles
);
ret
=
MSCMS_create_htransform_handle
(
cmstransform
);
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
BOOL
WINAPI
DeleteColorTransform
(
HTRANSFORM
transform
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
cmsHTRANSFORM
cmstransform
;
TRACE
(
"( %p )
\n
"
,
transform
);
...
...
@@ -133,7 +133,7 @@ BOOL WINAPI DeleteColorTransform( HTRANSFORM transform )
MSCMS_destroy_htransform_handle
(
transform
);
ret
=
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
...
...
@@ -142,7 +142,7 @@ BOOL WINAPI TranslateBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT i
DWORD
outputstride
,
PBMCALLBACKFN
callback
,
ULONG
data
)
{
BOOL
ret
=
FALSE
;
#ifdef HAVE_LCMS
_H
#ifdef HAVE_LCMS
cmsHTRANSFORM
cmstransform
;
TRACE
(
"( %p, %p, 0x%08x, 0x%08lx, 0x%08lx, 0x%08lx, %p, 0x%08x, 0x%08lx, %p, 0x%08lx )
\n
"
,
...
...
@@ -154,6 +154,6 @@ BOOL WINAPI TranslateBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT i
cmsDoTransform
(
cmstransform
,
srcbits
,
destbits
,
width
*
height
);
ret
=
TRUE
;
#endif
/* HAVE_LCMS
_H
*/
#endif
/* HAVE_LCMS */
return
ret
;
}
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