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
6bb300fa
Commit
6bb300fa
authored
Dec 26, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipBitmapSetResolution.
parent
1aea88ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
image.c
dlls/gdiplus/image.c
+8
-2
image.c
dlls/gdiplus/tests/image.c
+5
-5
No files found.
dlls/gdiplus/image.c
View file @
6bb300fa
...
...
@@ -535,9 +535,15 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect,
GpStatus
WINGDIPAPI
GdipBitmapSetResolution
(
GpBitmap
*
bitmap
,
REAL
xdpi
,
REAL
ydpi
)
{
FIXM
E
(
"(%p, %.2f, %.2f)
\n
"
,
bitmap
,
xdpi
,
ydpi
);
TRAC
E
(
"(%p, %.2f, %.2f)
\n
"
,
bitmap
,
xdpi
,
ydpi
);
return
NotImplemented
;
if
(
!
bitmap
||
xdpi
==
0
.
0
||
ydpi
==
0
.
0
)
return
InvalidParameter
;
bitmap
->
image
.
xres
=
xdpi
;
bitmap
->
image
.
yres
=
ydpi
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipBitmapUnlockBits
(
GpBitmap
*
bitmap
,
...
...
dlls/gdiplus/tests/image.c
View file @
6bb300fa
...
...
@@ -915,10 +915,10 @@ static void test_resolution(void)
expect
(
InvalidParameter
,
stat
);
stat
=
GdipBitmapSetResolution
(
NULL
,
96
.
0
,
96
.
0
);
todo_wine
expect
(
InvalidParameter
,
stat
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipBitmapSetResolution
(
bitmap
,
0
.
0
,
0
.
0
);
todo_wine
expect
(
InvalidParameter
,
stat
);
expect
(
InvalidParameter
,
stat
);
/* defaults to screen resolution */
screendc
=
GetDC
(
0
);
...
...
@@ -938,15 +938,15 @@ static void test_resolution(void)
/* test changing the resolution */
stat
=
GdipBitmapSetResolution
(
bitmap
,
screenxres
*
2
.
0
,
screenyres
*
3
.
0
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
stat
=
GdipGetImageHorizontalResolution
((
GpImage
*
)
bitmap
,
&
res
);
expect
(
Ok
,
stat
);
todo_wine
expectf
(
screenxres
*
2
.
0
,
res
);
expectf
(
screenxres
*
2
.
0
,
res
);
stat
=
GdipGetImageVerticalResolution
((
GpImage
*
)
bitmap
,
&
res
);
expect
(
Ok
,
stat
);
todo_wine
expectf
(
screenyres
*
3
.
0
,
res
);
expectf
(
screenyres
*
3
.
0
,
res
);
stat
=
GdipDisposeImage
((
GpImage
*
)
bitmap
);
expect
(
Ok
,
stat
);
...
...
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