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
e82f88d5
Commit
e82f88d5
authored
Aug 19, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add a helper to retrieve the bitmap functions.
parent
cb82c45b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
dib.c
dlls/gdi32/dib.c
+2
-4
gdi_private.h
dlls/gdi32/gdi_private.h
+6
-0
No files found.
dlls/gdi32/dib.c
View file @
e82f88d5
...
...
@@ -583,8 +583,7 @@ INT WINAPI SetDIBits( HDC hdc, HBITMAP hbitmap, UINT startscan,
physdev
=
GET_DC_PHYSDEV
(
dc
,
pCreateBitmap
);
if
(
!
BITMAP_SetOwnerDC
(
hbitmap
,
physdev
))
goto
done
;
funcs
=
bitmap
->
funcs
;
if
(
bitmap
->
dib
)
funcs
=
dc
->
dibdrv
.
dev
.
funcs
;
funcs
=
get_bitmap_funcs
(
bitmap
);
result
=
lines
;
...
...
@@ -947,8 +946,7 @@ INT WINAPI GetDIBits(
return
0
;
}
funcs
=
bmp
->
funcs
;
if
(
bmp
->
dib
)
funcs
=
dc
->
dibdrv
.
dev
.
funcs
;
funcs
=
get_bitmap_funcs
(
bmp
);
if
(
dst_info
->
bmiHeader
.
biBitCount
==
0
)
/* query bitmap info only */
{
...
...
dlls/gdi32/gdi_private.h
View file @
e82f88d5
...
...
@@ -571,6 +571,12 @@ static inline int get_dib_num_of_colors( const BITMAPINFO *info )
return
info
->
bmiHeader
.
biBitCount
>
8
?
0
:
1
<<
info
->
bmiHeader
.
biBitCount
;
}
static
inline
const
struct
gdi_dc_funcs
*
get_bitmap_funcs
(
const
BITMAPOBJ
*
bitmap
)
{
if
(
bitmap
->
dib
)
return
&
dib_driver
;
return
bitmap
->
funcs
;
}
extern
void
free_heap_bits
(
struct
gdi_image_bits
*
bits
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_GDI_PRIVATE_H */
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