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
7deda051
Commit
7deda051
authored
Aug 04, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Create a sanitized BITMAPINFO in CreateDIBSection and pass that to the driver.
parent
e21eebb2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
101 deletions
+43
-101
dib.c
dlls/gdi32/dib.c
+42
-96
dib.c
dlls/winex11.drv/dib.c
+1
-5
No files found.
dlls/gdi32/dib.c
View file @
7deda051
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/dib.c
View file @
7deda051
...
@@ -4470,16 +4470,12 @@ HBITMAP X11DRV_CreateDIBSection( PHYSDEV dev, HBITMAP hbitmap, const BITMAPINFO
...
@@ -4470,16 +4470,12 @@ HBITMAP X11DRV_CreateDIBSection( PHYSDEV dev, HBITMAP hbitmap, const BITMAPINFO
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
X11DRV_PDEVICE
*
physDev
=
get_x11drv_dev
(
dev
);
X_PHYSBITMAP
*
physBitmap
;
X_PHYSBITMAP
*
physBitmap
;
DIBSECTION
dib
;
DIBSECTION
dib
;
WORD
bpp
,
compr
;
LONG
w
,
h
;
#ifdef HAVE_LIBXXSHM
#ifdef HAVE_LIBXXSHM
Bool
pixmaps
;
Bool
pixmaps
;
#endif
#endif
if
(
DIB_GetBitmapInfo
(
&
bmi
->
bmiHeader
,
&
w
,
&
h
,
&
bpp
,
&
compr
)
==
-
1
)
return
0
;
if
(
!
(
physBitmap
=
X11DRV_init_phys_bitmap
(
hbitmap
)))
return
0
;
if
(
!
(
physBitmap
=
X11DRV_init_phys_bitmap
(
hbitmap
)))
return
0
;
if
(
h
<
0
)
physBitmap
->
topdown
=
TRUE
;
physBitmap
->
topdown
=
bmi
->
bmiHeader
.
biHeight
<
0
;
physBitmap
->
status
=
DIB_Status_None
;
physBitmap
->
status
=
DIB_Status_None
;
GetObjectW
(
hbitmap
,
sizeof
(
dib
),
&
dib
);
GetObjectW
(
hbitmap
,
sizeof
(
dib
),
&
dib
);
...
...
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