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
feef8957
Commit
feef8957
authored
Dec 27, 2004
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub implementations for GetICMProfileW, SetICMProfile{A,W},
UpdateICMRegKey{A,W}. Forward UpdateICMRegKey to UpdateICMRegKeyA.
parent
273137cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
16 deletions
+83
-16
gdi32.spec
dlls/gdi/gdi32.spec
+7
-7
palette.c
dlls/gdi/palette.c
+64
-6
wingdi.h
include/wingdi.h
+12
-3
No files found.
dlls/gdi/gdi32.spec
View file @
feef8957
...
...
@@ -226,8 +226,8 @@
@ stdcall GetGlyphOutlineW(long long long ptr long ptr ptr)
@ stub GetGlyphOutlineWow
@ stdcall GetGraphicsMode(long)
@ stdcall GetICMProfileA(long ptr
p
tr)
@ st
ub GetICMProfileW
@ stdcall GetICMProfileA(long ptr
s
tr)
@ st
dcall GetICMProfileW(long ptr wstr)
@ stub GetKerningPairs
@ stdcall GetKerningPairsA(long long ptr)
@ stdcall GetKerningPairsW(long long ptr)
...
...
@@ -363,8 +363,8 @@
@ stub SetFontEnumeration
@ stdcall SetGraphicsMode(long long)
@ stdcall SetICMMode(long long)
@ stdcall SetICMProfileA
(long p
tr)
@ st
ub SetICMProfileW
@ stdcall SetICMProfileA
(long s
tr)
@ st
dcall SetICMProfileW(long wstr)
@ stdcall SetLayout(long long)
@ stub SetMagicColors
@ stdcall SetMapMode(long long)
...
...
@@ -408,9 +408,9 @@
@ stub UnloadNetworkFonts
@ stdcall UnrealizeObject(long)
@ stdcall UpdateColors(long)
@ st
ub UpdateICMRegKey
@ st
ub UpdateICMRegKeyA
@ st
ub UpdateICMRegKeyW
@ st
dcall UpdateICMRegKey(long str str long) UpdateICMRegKeyA
@ st
dcall UpdateICMRegKeyA(long str str long)
@ st
dcall UpdateICMRegKeyW(long wstr wstr long)
@ stdcall WidenPath(long)
@ stub gdiPlaySpoolStream
@ extern pfnRealizePalette
...
...
dlls/gdi/palette.c
View file @
feef8957
...
...
@@ -927,34 +927,60 @@ VOID WINAPI SetMagicColors16(HDC16 hDC, COLORREF color, UINT16 index)
* How does Windows assign these? Some registry key?
*/
#define WINEICM "winefake.icm"
/* easy-to-identify fake filename */
/*********************************************************************/
BOOL
WINAPI
GetICMProfileA
(
HDC
hDC
,
LPDWORD
lpcbName
,
LPSTR
lpszFilename
)
{
DWORD
callerLen
;
static
const
char
icm
[]
=
"winefake.icm"
;
FIXME
(
"(%p, %p, %p): partial stub
\n
"
,
hDC
,
lpcbName
,
lpszFilename
);
callerLen
=
*
lpcbName
;
/* all 3 behaviors require the required buffer size to be set */
*
lpcbName
=
s
trlen
(
WINEICM
);
*
lpcbName
=
s
izeof
(
icm
);
/* behavior 1: if lpszFilename is NULL, return size of string and no error */
if
((
DWORD
)
lpszFilename
==
(
DWORD
)
0x00000000
)
return
TRUE
;
if
(
!
lpszFilename
)
return
TRUE
;
/* behavior 2: if buffer size too small, return size of string and error */
if
(
callerLen
<
s
trlen
(
WINEICM
))
if
(
callerLen
<
s
izeof
(
icm
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
/* behavior 3: if buffer size OK and pointer not NULL, copy and return size */
strcpy
(
lpszFilename
,
WINEICM
);
memcpy
(
lpszFilename
,
icm
,
sizeof
(
icm
));
return
TRUE
;
}
BOOL
WINAPI
GetICMProfileW
(
HDC
hDC
,
LPDWORD
lpcbName
,
LPWSTR
lpszFilename
)
{
DWORD
callerLen
;
static
const
WCHAR
icm
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'f'
,
'a'
,
'k'
,
'e'
,
'.'
,
'i'
,
'c'
,
'm'
,
0
};
FIXME
(
"(%p, %p, %p): partial stub
\n
"
,
hDC
,
lpcbName
,
lpszFilename
);
callerLen
=
*
lpcbName
;
/* all 3 behaviors require the required buffer size to be set */
*
lpcbName
=
sizeof
(
icm
)
/
sizeof
(
WCHAR
);
/* behavior 1: if lpszFilename is NULL, return size of string and no error */
if
(
!
lpszFilename
)
return
TRUE
;
/* behavior 2: if buffer size too small, return size of string and error */
if
(
callerLen
<
sizeof
(
icm
)
/
sizeof
(
WCHAR
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
/* behavior 3: if buffer size OK and pointer not NULL, copy and return size */
memcpy
(
lpszFilename
,
icm
,
sizeof
(
icm
));
return
TRUE
;
}
...
...
@@ -967,3 +993,35 @@ BOOL WINAPI SetICMProfileA(HDC hDC, LPSTR lpszFilename)
FIXME
(
"hDC %p filename '%s': stub!
\n
"
,
hDC
,
debugstr_a
(
lpszFilename
));
return
TRUE
;
/* success */
}
/**********************************************************************
* SetICMProfileA [GDI32.@]
*
*/
BOOL
WINAPI
SetICMProfileW
(
HDC
hDC
,
LPWSTR
lpszFilename
)
{
FIXME
(
"hDC %p filename '%s': stub!
\n
"
,
hDC
,
debugstr_w
(
lpszFilename
));
return
TRUE
;
/* success */
}
/**********************************************************************
* UpdateICMRegKeyA [GDI32.@]
*
*/
BOOL
WINAPI
UpdateICMRegKeyA
(
DWORD
dwReserved
,
LPSTR
lpszCMID
,
LPSTR
lpszFileName
,
UINT
nCommand
)
{
FIXME
(
"(0x%08lx, %s, %s, 0x%08x): stub!
\n
"
,
dwReserved
,
debugstr_a
(
lpszCMID
),
debugstr_a
(
lpszFileName
),
nCommand
);
return
TRUE
;
/* success */
}
/**********************************************************************
* UpdateICMRegKeyW [GDI32.@]
*
*/
BOOL
WINAPI
UpdateICMRegKeyW
(
DWORD
dwReserved
,
LPWSTR
lpszCMID
,
LPWSTR
lpszFileName
,
UINT
nCommand
)
{
FIXME
(
"(0x%08lx, %s, %s, 0x%08x): stub!
\n
"
,
dwReserved
,
debugstr_w
(
lpszCMID
),
debugstr_w
(
lpszFileName
),
nCommand
);
return
TRUE
;
/* success */
}
include/wingdi.h
View file @
feef8957
...
...
@@ -3390,9 +3390,12 @@ DWORD WINAPI GetGlyphIndicesW(HDC,LPCWSTR,INT,LPWORD,DWORD);
DWORD
WINAPI
GetGlyphOutlineA
(
HDC
,
UINT
,
UINT
,
LPGLYPHMETRICS
,
DWORD
,
LPVOID
,
const
MAT2
*
);
DWORD
WINAPI
GetGlyphOutlineW
(
HDC
,
UINT
,
UINT
,
LPGLYPHMETRICS
,
DWORD
,
LPVOID
,
const
MAT2
*
);
#define GetGlyphOutline WINELIB_NAME_AW(GetGlyphOutline)
INT
WINAPI
GetGraphicsMode
(
HDC
);
DWORD
WINAPI
GetKerningPairsA
(
HDC
,
DWORD
,
LPKERNINGPAIR
);
DWORD
WINAPI
GetKerningPairsW
(
HDC
,
DWORD
,
LPKERNINGPAIR
);
INT
WINAPI
GetGraphicsMode
(
HDC
);
BOOL
WINAPI
GetICMProfileA
(
HDC
,
LPDWORD
,
LPSTR
);
BOOL
WINAPI
GetICMProfileW
(
HDC
,
LPDWORD
,
LPWSTR
);
#define GetICMProfile WINELIB_NAME_AW(GetICMProfile)
DWORD
WINAPI
GetKerningPairsA
(
HDC
,
DWORD
,
LPKERNINGPAIR
);
DWORD
WINAPI
GetKerningPairsW
(
HDC
,
DWORD
,
LPKERNINGPAIR
);
#define GetKerningPairs WINELIB_NAME_AW(GetKerningPairs)
DWORD
WINAPI
GetLayout
(
HDC
);
BOOL
WINAPI
GetLogColorSpaceA
(
HCOLORSPACE
,
LPLOGCOLORSPACEA
,
DWORD
);
...
...
@@ -3534,6 +3537,9 @@ INT WINAPI SetDIBitsToDevice(HDC,INT,INT,DWORD,DWORD,INT,
HENHMETAFILE
WINAPI
SetEnhMetaFileBits
(
UINT
,
const
BYTE
*
);
INT
WINAPI
SetGraphicsMode
(
HDC
,
INT
);
INT
WINAPI
SetICMMode
(
HDC
,
INT
);
BOOL
WINAPI
SetICMProfileA
(
HDC
,
LPSTR
);
BOOL
WINAPI
SetICMProfileW
(
HDC
,
LPWSTR
);
#define SetICMProfile WINELIB_NAME_AW(SetICMProfile)
DWORD
WINAPI
SetLayout
(
HDC
,
DWORD
);
INT
WINAPI
SetMapMode
(
HDC
,
INT
);
DWORD
WINAPI
SetMapperFlags
(
HDC
,
DWORD
);
...
...
@@ -3579,6 +3585,9 @@ BOOL WINAPI TranslateCharsetInfo(LPDWORD,LPCHARSETINFO,DWORD);
BOOL
WINAPI
TransparentBlt
(
HDC
,
int
,
int
,
int
,
int
,
HDC
,
int
,
int
,
int
,
int
,
UINT
);
BOOL
WINAPI
UnrealizeObject
(
HGDIOBJ
);
BOOL
WINAPI
UpdateColors
(
HDC
);
BOOL
WINAPI
UpdateICMRegKeyA
(
DWORD
,
LPSTR
,
LPSTR
,
UINT
);
BOOL
WINAPI
UpdateICMRegKeyW
(
DWORD
,
LPWSTR
,
LPWSTR
,
UINT
);
#define UpdateICMRegKey WINELIB_NAME_AW(UpdateICMRegKey)
BOOL
WINAPI
WidenPath
(
HDC
);
BOOL
WINAPI
PolyTextOutA
(
HDC
,
PPOLYTEXTA
,
INT
);
BOOL
WINAPI
PolyTextOutW
(
HDC
,
PPOLYTEXTW
,
INT
);
...
...
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