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
abc3769a
Commit
abc3769a
authored
Oct 30, 2006
by
Andrey Turkin
Committed by
Alexandre Julliard
Nov 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Implement AtlPixelToHiMetric and AtlHiMetricToPixel.
parent
64fe2774
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
Makefile.in
dlls/atl/Makefile.in
+1
-1
atl.spec
dlls/atl/atl.spec
+2
-2
atl_main.c
dlls/atl/atl_main.c
+17
-0
No files found.
dlls/atl/Makefile.in
View file @
abc3769a
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
atl.dll
MODULE
=
atl.dll
IMPORTLIB
=
libatl.
$(IMPLIBEXT)
IMPORTLIB
=
libatl.
$(IMPLIBEXT)
IMPORTS
=
ole32 shlwapi user32 advapi32 kernel32
IMPORTS
=
ole32 shlwapi user32
gdi32
advapi32 kernel32
EXTRALIBS
=
-luuid
EXTRALIBS
=
-luuid
C_SRCS
=
\
C_SRCS
=
\
...
...
dlls/atl/atl.spec
View file @
abc3769a
...
@@ -19,8 +19,8 @@
...
@@ -19,8 +19,8 @@
24 stub AtlWaitWithMessageLoop
24 stub AtlWaitWithMessageLoop
25 stub AtlSetErrorInfo
25 stub AtlSetErrorInfo
26 stub AtlCreateTargetDC
26 stub AtlCreateTargetDC
27 st
ub AtlHiMetricToPixel
27 st
dcall AtlHiMetricToPixel(ptr ptr)
28 st
ub AtlPixelToHiMetric
28 st
dcall AtlPixelToHiMetric(ptr ptr)
29 stub AtlDevModeW2A
29 stub AtlDevModeW2A
30 stdcall AtlComPtrAssign(ptr ptr)
30 stdcall AtlComPtrAssign(ptr ptr)
31 stub AtlComQIPtrAssign
31 stub AtlComQIPtrAssign
...
...
dlls/atl/atl_main.c
View file @
abc3769a
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winerror.h"
#include "winerror.h"
#include "wingdi.h"
#include "winuser.h"
#include "winuser.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "objbase.h"
#include "objbase.h"
...
@@ -421,3 +422,19 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
...
@@ -421,3 +422,19 @@ ATOM WINAPI AtlModuleRegisterWndClassInfoW(_ATL_MODULEW *pm, _ATL_WNDCLASSINFOW
TRACE
(
"returning 0x%04x
\n
"
,
atom
);
TRACE
(
"returning 0x%04x
\n
"
,
atom
);
return
atom
;
return
atom
;
}
}
void
WINAPI
AtlHiMetricToPixel
(
const
SIZEL
*
lpHiMetric
,
SIZEL
*
lpPix
)
{
HDC
dc
=
GetDC
(
NULL
);
lpPix
->
cx
=
lpHiMetric
->
cx
*
GetDeviceCaps
(
dc
,
LOGPIXELSX
)
/
100
;
lpPix
->
cy
=
lpHiMetric
->
cy
*
GetDeviceCaps
(
dc
,
LOGPIXELSY
)
/
100
;
ReleaseDC
(
NULL
,
dc
);
}
void
WINAPI
AtlPixelToHiMetric
(
const
SIZEL
*
lpPix
,
SIZEL
*
lpHiMetric
)
{
HDC
dc
=
GetDC
(
NULL
);
lpHiMetric
->
cx
=
100
*
lpPix
->
cx
/
GetDeviceCaps
(
dc
,
LOGPIXELSX
);
lpHiMetric
->
cy
=
100
*
lpPix
->
cy
/
GetDeviceCaps
(
dc
,
LOGPIXELSY
);
ReleaseDC
(
NULL
,
dc
);
}
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