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
a4dfeca2
Commit
a4dfeca2
authored
Oct 26, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Oct 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to {G|S}etRelAbs() during runtime as Win9x OSes miss them.
parent
16a5c4fb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
metafile.c
dlls/gdi/tests/metafile.c
+26
-2
No files found.
dlls/gdi/tests/metafile.c
View file @
a4dfeca2
...
@@ -35,6 +35,27 @@ static BOOL emr_processed = FALSE;
...
@@ -35,6 +35,27 @@ static BOOL emr_processed = FALSE;
#define LINE_X 55.0f
#define LINE_X 55.0f
#define LINE_Y 15.0f
#define LINE_Y 15.0f
static
INT
(
WINAPI
*
pGetRelAbs
)(
HDC
,
DWORD
);
static
INT
(
WINAPI
*
pSetRelAbs
)(
HDC
,
INT
);
#define GDI_GET_PROC(func) \
p ## func = (void *)GetProcAddress(hGDI, #func); \
if(!p ## func) \
trace("GetProcAddress(hGDI, \"%s\") failed\n", #func); \
static
void
init_function_pointers
(
void
)
{
HMODULE
hGDI
;
pGetRelAbs
=
NULL
;
pSetRelAbs
=
NULL
;
hGDI
=
GetModuleHandleA
(
"gdi32.dll"
);
assert
(
hGDI
);
GDI_GET_PROC
(
GetRelAbs
);
GDI_GET_PROC
(
SetRelAbs
);
}
static
int
CALLBACK
emf_enum_proc
(
HDC
hdc
,
HANDLETABLE
*
handle_table
,
static
int
CALLBACK
emf_enum_proc
(
HDC
hdc
,
HANDLETABLE
*
handle_table
,
const
ENHMETARECORD
*
emr
,
int
n_objs
,
LPARAM
param
)
const
ENHMETARECORD
*
emr
,
int
n_objs
,
LPARAM
param
)
{
{
...
@@ -65,7 +86,8 @@ static int CALLBACK emf_enum_proc(HDC hdc, HANDLETABLE *handle_table,
...
@@ -65,7 +86,8 @@ static int CALLBACK emf_enum_proc(HDC hdc, HANDLETABLE *handle_table,
/* GetBkMode, GetRelAbs do not get reset to the default value */
/* GetBkMode, GetRelAbs do not get reset to the default value */
ok
(
GetBkMode
(
hdc
)
==
OPAQUE
,
"bk mode %d
\n
"
,
GetBkMode
(
hdc
));
ok
(
GetBkMode
(
hdc
)
==
OPAQUE
,
"bk mode %d
\n
"
,
GetBkMode
(
hdc
));
ok
(
GetRelAbs
(
hdc
,
0
)
==
RELATIVE
,
"relabs %d
\n
"
,
GetRelAbs
(
hdc
,
0
));
if
(
pSetRelAbs
&&
pGetRelAbs
)
ok
(
pGetRelAbs
(
hdc
,
0
)
==
RELATIVE
,
"relabs %d
\n
"
,
pGetRelAbs
(
hdc
,
0
));
n_record
=
0
;
n_record
=
0
;
break
;
break
;
...
@@ -209,7 +231,7 @@ static void test_ExtTextOut(void)
...
@@ -209,7 +231,7 @@ static void test_ExtTextOut(void)
SetPolyFillMode
(
hdcDisplay
,
WINDING
);
SetPolyFillMode
(
hdcDisplay
,
WINDING
);
SetStretchBltMode
(
hdcDisplay
,
HALFTONE
);
SetStretchBltMode
(
hdcDisplay
,
HALFTONE
);
SetRelAbs
(
hdcDisplay
,
RELATIVE
);
if
(
pSetRelAbs
)
p
SetRelAbs
(
hdcDisplay
,
RELATIVE
);
SetBkMode
(
hdcDisplay
,
OPAQUE
);
SetBkMode
(
hdcDisplay
,
OPAQUE
);
ret
=
EnumEnhMetaFile
(
hdcDisplay
,
hMetafile
,
emf_enum_proc
,
dx
,
&
rc
);
ret
=
EnumEnhMetaFile
(
hdcDisplay
,
hMetafile
,
emf_enum_proc
,
dx
,
&
rc
);
...
@@ -787,6 +809,8 @@ static void test_gdiis(void)
...
@@ -787,6 +809,8 @@ static void test_gdiis(void)
START_TEST
(
metafile
)
START_TEST
(
metafile
)
{
{
init_function_pointers
();
/* For enhanced metafiles (enhmfdrv) */
/* For enhanced metafiles (enhmfdrv) */
test_ExtTextOut
();
test_ExtTextOut
();
...
...
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