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
31b47218
Commit
31b47218
authored
Sep 22, 1999
by
Ian Schmidt
Committed by
Alexandre Julliard
Sep 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added partial implementation of GetICMProfileA, required by Paint Shop
Pro 5.
parent
b59d4bc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
palette.c
objects/palette.c
+50
-0
gdi32.spec
relay32/gdi32.spec
+1
-1
No files found.
objects/palette.c
View file @
31b47218
...
...
@@ -18,6 +18,7 @@
#include "palette.h"
#include "xmalloc.h"
#include "debugtools.h"
#include "winerror.h"
DEFAULT_DEBUG_CHANNEL
(
palette
)
...
...
@@ -868,3 +869,52 @@ VOID WINAPI SetMagicColors16(HDC16 hDC, COLORREF color, UINT16 index)
FIXME
(
"(hDC %04x, color %04x, index %04x): stub
\n
"
,
hDC
,
(
int
)
color
,
index
);
}
/**********************************************************************
* GetICMProfileA [GDI32.316]
*
* Returns the filename of the specified device context's color
* management profile, even if color management is not enabled
* for that DC.
*
* RETURNS
* TRUE if name copied succesfully OR lpszFilename is NULL
* FALSE if the buffer length pointed to by lpcbName is too small
*
* NOTE
* The buffer length pointed to by lpcbName is ALWAYS updated to
* the length required regardless of other actions this function
* may take.
*
* FIXME
* 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
;
FIXME
(
"(%04x, %p, %p): partial stub
\n
"
,
hDC
,
lpcbName
,
lpszFilename
);
callerLen
=
*
lpcbName
;
/* all 3 behaviors require the required buffer size to be set */
*
lpcbName
=
strlen
(
WINEICM
);
/* behavior 1: if lpszFilename is NULL, return size of string and no error */
if
((
DWORD
)
lpszFilename
==
(
DWORD
)
0x00000000
)
return
TRUE
;
/* behavior 2: if buffer size too small, return size of string and error */
if
(
callerLen
<
strlen
(
WINEICM
))
{
SetLastError
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
/* behavior 3: if buffer size OK and pointer not NULL, copy and return size */
lstrcpyA
(
lpszFilename
,
WINEICM
);
return
TRUE
;
}
relay32/gdi32.spec
View file @
31b47218
...
...
@@ -218,7 +218,7 @@ init MAIN_GdiInit
313 stdcall GetGlyphOutlineW(long long long ptr long ptr ptr) GetGlyphOutlineW
314 stub GetGlyphOutlineWow
315 stdcall GetGraphicsMode(long) GetGraphicsMode
316 st
ub
GetICMProfileA
316 st
dcall GetICMProfileA(long ptr ptr)
GetICMProfileA
317 stub GetICMProfileW
318 stub GetKerningPairs
319 stdcall GetKerningPairsA(long long ptr) GetKerningPairsA
...
...
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