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
d5769957
Commit
d5769957
authored
Apr 29, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipGetDpiX/GdipGetDpiY.
parent
7ce48b03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+20
-0
gdiplusflat.h
include/gdiplusflat.h
+3
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
d5769957
...
...
@@ -256,8 +256,8 @@
@ stub GdipGetCustomLineCapType
@ stub GdipGetCustomLineCapWidthScale
@ stub GdipGetDC
@ st
ub GdipGetDpiX
@ st
ub GdipGetDpiY
@ st
dcall GdipGetDpiX(ptr ptr)
@ st
dcall GdipGetDpiY(ptr ptr)
@ stub GdipGetEffectParameterSize
@ stub GdipGetEffectParameters
@ stub GdipGetEmHeight
...
...
dlls/gdiplus/graphics.c
View file @
d5769957
...
...
@@ -2398,3 +2398,23 @@ GpStatus WINGDIPAPI GdipDrawPolygonI(GpGraphics *graphics,GpPen *pen,GDIPCONST G
return
ret
;
}
GpStatus
WINGDIPAPI
GdipGetDpiX
(
GpGraphics
*
graphics
,
REAL
*
dpi
)
{
if
(
!
graphics
||
!
dpi
)
return
InvalidParameter
;
*
dpi
=
(
REAL
)
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSX
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetDpiY
(
GpGraphics
*
graphics
,
REAL
*
dpi
)
{
if
(
!
graphics
||
!
dpi
)
return
InvalidParameter
;
*
dpi
=
(
REAL
)
GetDeviceCaps
(
graphics
->
hdc
,
LOGPIXELSY
);
return
Ok
;
}
include/gdiplusflat.h
View file @
d5769957
...
...
@@ -343,6 +343,9 @@ GpStatus WINGDIPAPI GdipSetStringFormatLineAlign(GpStringFormat*,StringAlignment
GpStatus
WINGDIPAPI
GdipSetStringFormatTrimming
(
GpStringFormat
*
,
StringTrimming
);
GpStatus
WINGDIPAPI
GdipCloneStringFormat
(
GDIPCONST
GpStringFormat
*
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipGetDpiX
(
GpGraphics
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetDpiY
(
GpGraphics
*
,
REAL
*
);
#ifdef __cplusplus
}
#endif
...
...
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