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
5d019367
Commit
5d019367
authored
May 11, 2002
by
David Hammerton
Committed by
Alexandre Julliard
May 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lock/unlock (and hence maybe coerce) DIBSections into GdiMod during
the SetDIBits and GetDIBits functions, before actually accessing the X Pixmap.
parent
f85d8da4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dib.c
graphics/x11drv/dib.c
+5
-1
No files found.
graphics/x11drv/dib.c
View file @
5d019367
...
...
@@ -4891,7 +4891,9 @@ INT X11DRV_SetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
descr
.
height
=
lines
;
descr
.
useShm
=
FALSE
;
descr
.
dibpitch
=
((
descr
.
infoWidth
*
descr
.
infoBpp
+
31
)
&~
31
)
/
8
;
X11DRV_DIB_Lock
(
bmp
,
DIB_Status_GdiMod
,
FALSE
);
result
=
X11DRV_DIB_SetImageBits
(
&
descr
);
X11DRV_DIB_Unlock
(
bmp
,
TRUE
);
if
(
descr
.
colorMap
)
HeapFree
(
GetProcessHeap
(),
0
,
descr
.
colorMap
);
...
...
@@ -5009,7 +5011,9 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
descr
.
dibpitch
=
dib
?
(
dib
->
dibSection
.
dsBm
.
bmWidthBytes
)
:
(((
descr
.
infoWidth
*
descr
.
infoBpp
+
31
)
&~
31
)
/
8
);
X11DRV_DIB_Lock
(
bmp
,
DIB_Status_GdiMod
,
FALSE
);
X11DRV_DIB_GetImageBits
(
&
descr
);
X11DRV_DIB_Unlock
(
bmp
,
TRUE
);
if
(
info
->
bmiHeader
.
biSizeImage
==
0
)
/* Fill in biSizeImage */
info
->
bmiHeader
.
biSizeImage
=
DIB_GetDIBImageBytes
(
...
...
@@ -5646,7 +5650,7 @@ HBITMAP X11DRV_DIB_CreateDIBSection(
INT
effHeight
,
totalSize
;
BITMAP
bm
;
LPVOID
mapBits
=
NULL
;
TRACE
(
"format (%ld,%ld), planes %d, bpp %d, size %ld, colors %ld (%s)
\n
"
,
bi
->
biWidth
,
bi
->
biHeight
,
bi
->
biPlanes
,
bi
->
biBitCount
,
bi
->
biSizeImage
,
bi
->
biClrUsed
,
usage
==
DIB_PAL_COLORS
?
"PAL"
:
"RGB"
);
...
...
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