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
4e14c45b
Commit
4e14c45b
authored
Oct 17, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Add a test for GdipCloneBitmapArea called on an already locked bitmap.
parent
87ae85f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
image.c
dlls/gdiplus/tests/image.c
+28
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
4e14c45b
...
...
@@ -4240,6 +4240,33 @@ static void test_ARGB_conversion(void)
GdipDisposeImage
((
GpImage
*
)
bitmap
);
}
static
void
test_CloneBitmapArea
(
void
)
{
GpStatus
status
;
GpBitmap
*
bitmap
,
*
copy
;
BitmapData
data
,
data2
;
status
=
GdipCreateBitmapFromScan0
(
1
,
1
,
0
,
PixelFormat24bppRGB
,
NULL
,
&
bitmap
);
expect
(
Ok
,
status
);
status
=
GdipBitmapLockBits
(
bitmap
,
NULL
,
ImageLockModeRead
|
ImageLockModeWrite
,
PixelFormat24bppRGB
,
&
data
);
expect
(
Ok
,
status
);
status
=
GdipBitmapLockBits
(
bitmap
,
NULL
,
ImageLockModeRead
,
PixelFormat24bppRGB
,
&
data2
);
expect
(
WrongState
,
status
);
status
=
GdipCloneBitmapAreaI
(
0
,
0
,
1
,
1
,
PixelFormat24bppRGB
,
bitmap
,
&
copy
);
todo_wine
expect
(
Ok
,
status
);
status
=
GdipBitmapUnlockBits
(
bitmap
,
&
data
);
expect
(
Ok
,
status
);
GdipDisposeImage
((
GpImage
*
)
copy
);
GdipDisposeImage
((
GpImage
*
)
bitmap
);
}
START_TEST
(
image
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -4252,6 +4279,7 @@ START_TEST(image)
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
test_CloneBitmapArea
();
test_ARGB_conversion
();
test_DrawImage_scale
();
test_image_format
();
...
...
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