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
5bd003ed
Commit
5bd003ed
authored
Sep 08, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Sep 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: When creating a dib_info from a ddb, always make a copy of the colour map.
parent
2a5cabc2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+13
-4
dc.c
dlls/gdi32/dibdrv/dc.c
+2
-1
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
5bd003ed
...
...
@@ -604,7 +604,7 @@ DWORD dibdrv_GetImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info,
struct
gdi_image_bits
*
bits
,
struct
bitblt_coords
*
src
)
{
DWORD
ret
=
ERROR_SUCCESS
;
dib_info
*
dib
,
stand_alone
;
dib_info
*
dib
=
NULL
,
stand_alone
;
TRACE
(
"%p %p %p
\n
"
,
dev
,
hbitmap
,
info
);
...
...
@@ -651,7 +651,12 @@ DWORD dibdrv_GetImage( PHYSDEV dev, HBITMAP hbitmap, BITMAPINFO *info,
}
done:
if
(
hbitmap
)
GDI_ReleaseObj
(
hbitmap
);
if
(
hbitmap
)
{
if
(
dib
)
free_dib_info
(
dib
);
GDI_ReleaseObj
(
hbitmap
);
}
return
ret
;
}
...
...
@@ -707,7 +712,7 @@ DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINFO *info
const
struct
gdi_image_bits
*
bits
,
struct
bitblt_coords
*
src
,
struct
bitblt_coords
*
dst
,
DWORD
rop
)
{
dib_info
*
dib
,
stand_alone
;
dib_info
*
dib
=
NULL
,
stand_alone
;
DWORD
ret
;
dib_info
src_dib
;
HRGN
saved_clip
=
NULL
;
...
...
@@ -780,7 +785,11 @@ update_format:
ret
=
ERROR_BAD_FORMAT
;
done:
if
(
hbitmap
)
GDI_ReleaseObj
(
hbitmap
);
if
(
hbitmap
)
{
if
(
dib
)
free_dib_info
(
dib
);
GDI_ReleaseObj
(
hbitmap
);
}
return
ret
;
}
dlls/gdi32/dibdrv/dc.c
View file @
5bd003ed
...
...
@@ -219,7 +219,8 @@ BOOL init_dib_info_from_bitmapobj(dib_info *dib, BITMAPOBJ *bmp, enum dib_info_f
BITMAPINFO
*
info
=
(
BITMAPINFO
*
)
buffer
;
get_ddb_bitmapinfo
(
bmp
,
info
);
return
init_dib_info_from_bitmapinfo
(
dib
,
info
,
bmp
->
bitmap
.
bmBits
,
flags
);
return
init_dib_info_from_bitmapinfo
(
dib
,
info
,
bmp
->
bitmap
.
bmBits
,
flags
|
private_color_table
);
}
return
init_dib_info
(
dib
,
&
bmp
->
dib
->
dsBmih
,
bmp
->
dib
->
dsBitfields
,
bmp
->
color_table
,
bmp
->
nb_colors
,
bmp
->
dib
->
dsBm
.
bmBits
,
flags
);
...
...
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