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
df93d19d
Commit
df93d19d
authored
Nov 24, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Return success from the GdipSaveGraphics and GdipRestoreGraphics stubs.
parent
1e170c9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
graphics.c
dlls/gdiplus/graphics.c
+3
-2
graphics.c
dlls/gdiplus/tests/graphics.c
+3
-6
No files found.
dlls/gdiplus/graphics.c
View file @
df93d19d
...
...
@@ -2788,7 +2788,7 @@ GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState stat
if
(
!
(
calls
++
))
FIXME
(
"graphics state not implemented
\n
"
);
return
NotImplemented
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipRotateWorldTransform
(
GpGraphics
*
graphics
,
REAL
angle
,
...
...
@@ -2815,7 +2815,8 @@ GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state)
if
(
!
(
calls
++
))
FIXME
(
"graphics state not implemented
\n
"
);
return
NotImplemented
;
*
state
=
0xdeadbeef
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipScaleWorldTransform
(
GpGraphics
*
graphics
,
REAL
sx
,
...
...
dlls/gdiplus/tests/graphics.c
View file @
df93d19d
...
...
@@ -130,12 +130,10 @@ static void test_save_restore(void)
GdipCreateFromHDC
(
hdc
,
&
graphics1
);
GdipSetInterpolationMode
(
graphics1
,
InterpolationModeBilinear
);
stat
=
GdipSaveGraphics
(
graphics1
,
&
state_a
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
GdipSetInterpolationMode
(
graphics1
,
InterpolationModeBicubic
);
stat
=
GdipRestoreGraphics
(
graphics1
,
state_a
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
GdipGetInterpolationMode
(
graphics1
,
&
mode
);
todo_wine
expect
(
InterpolationModeBilinear
,
mode
);
...
...
@@ -151,8 +149,7 @@ static void test_save_restore(void)
GdipSaveGraphics
(
graphics1
,
&
state_b
);
GdipSetInterpolationMode
(
graphics1
,
InterpolationModeNearestNeighbor
);
stat
=
GdipRestoreGraphics
(
graphics1
,
0xdeadbeef
);
todo_wine
expect
(
Ok
,
stat
);
expect
(
Ok
,
stat
);
GdipRestoreGraphics
(
graphics1
,
state_b
);
GdipGetInterpolationMode
(
graphics1
,
&
mode
);
todo_wine
...
...
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