Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
faa1f737
Commit
faa1f737
authored
Jul 20, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Get rid of the StretchDIBits-based fallback for StretchBlt.
parent
209578ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
bitblt.c
dlls/gdi32/bitblt.c
+0
-37
No files found.
dlls/gdi32/bitblt.c
View file @
faa1f737
...
...
@@ -168,44 +168,7 @@ BOOL nulldrv_StretchBlt( PHYSDEV dst_dev, struct bitblt_coords *dst,
BITMAPINFO
*
dst_info
=
(
BITMAPINFO
*
)
dst_buffer
;
DWORD
err
;
struct
gdi_image_bits
bits
;
BITMAP
bm
;
HBITMAP
hbm
;
LPVOID
ptr
;
INT
lines
;
/* make sure we have a real implementation for StretchDIBits */
if
(
GET_DC_PHYSDEV
(
dc_dst
,
pStretchDIBits
)
==
dst_dev
)
goto
try_get_image
;
if
(
GetObjectType
(
src_dev
->
hdc
)
!=
OBJ_MEMDC
)
return
FALSE
;
if
(
!
GetObjectW
(
GetCurrentObject
(
src_dev
->
hdc
,
OBJ_BITMAP
),
sizeof
(
bm
),
&
bm
))
return
FALSE
;
src_info
->
bmiHeader
.
biSize
=
sizeof
(
src_info
->
bmiHeader
);
src_info
->
bmiHeader
.
biWidth
=
bm
.
bmWidth
;
src_info
->
bmiHeader
.
biHeight
=
bm
.
bmHeight
;
src_info
->
bmiHeader
.
biPlanes
=
1
;
src_info
->
bmiHeader
.
biBitCount
=
32
;
src_info
->
bmiHeader
.
biCompression
=
BI_RGB
;
src_info
->
bmiHeader
.
biSizeImage
=
0
;
src_info
->
bmiHeader
.
biXPelsPerMeter
=
0
;
src_info
->
bmiHeader
.
biYPelsPerMeter
=
0
;
src_info
->
bmiHeader
.
biClrUsed
=
0
;
src_info
->
bmiHeader
.
biClrImportant
=
0
;
if
(
!
(
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
bm
.
bmHeight
*
bm
.
bmWidth
*
4
)))
return
FALSE
;
/* Select out the src bitmap before calling GetDIBits */
hbm
=
SelectObject
(
src_dev
->
hdc
,
GetStockObject
(
DEFAULT_BITMAP
)
);
lines
=
GetDIBits
(
src_dev
->
hdc
,
hbm
,
0
,
bm
.
bmHeight
,
ptr
,
src_info
,
DIB_RGB_COLORS
);
SelectObject
(
src_dev
->
hdc
,
hbm
);
if
(
lines
)
lines
=
StretchDIBits
(
dst_dev
->
hdc
,
dst
->
log_x
,
dst
->
log_y
,
dst
->
log_width
,
dst
->
log_height
,
src
->
x
,
bm
.
bmHeight
-
src
->
height
-
src
->
y
,
src
->
width
,
src
->
height
,
ptr
,
src_info
,
DIB_RGB_COLORS
,
rop
);
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
return
(
lines
==
src
->
height
);
try_get_image:
if
(
!
(
dc_src
=
get_dc_ptr
(
src_dev
->
hdc
)))
return
FALSE
;
src_dev
=
GET_DC_PHYSDEV
(
dc_src
,
pGetImage
);
...
...
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