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
b16e32a3
Commit
b16e32a3
authored
Apr 12, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the bitmap handle in the phys bitmap structure, and avoid a few
more GDI_GetObjPtr calls.
parent
52cf1992
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
bitmap.c
dlls/x11drv/bitmap.c
+2
-1
dib.c
dlls/x11drv/dib.c
+0
-0
x11drv.h
dlls/x11drv/x11drv.h
+2
-5
No files found.
dlls/x11drv/bitmap.c
View file @
b16e32a3
...
...
@@ -431,7 +431,7 @@ BOOL X11DRV_DeleteBitmap( HBITMAP hbitmap )
if
(
physBitmap
)
{
if
(
physBitmap
->
dib
)
X11DRV_DIB_DeleteDIBSection
(
physBitmap
,
bmp
);
if
(
physBitmap
->
dib
)
X11DRV_DIB_DeleteDIBSection
(
physBitmap
);
wine_tsx11_lock
();
if
(
physBitmap
->
pixmap
)
XFreePixmap
(
gdi_display
,
physBitmap
->
pixmap
);
wine_tsx11_unlock
();
...
...
@@ -477,6 +477,7 @@ X_PHYSBITMAP *X11DRV_init_phys_bitmap( HBITMAP hbitmap )
{
if
((
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
ret
)
))
!=
NULL
)
{
ret
->
hbitmap
=
hbitmap
;
ret
->
pixmap
=
0
;
ret
->
pixmap_depth
=
bmp
->
bitmap
.
bmBitsPixel
;
ret
->
dib
=
NULL
;
...
...
dlls/x11drv/dib.c
View file @
b16e32a3
This diff is collapsed.
Click to expand it.
dlls/x11drv/x11drv.h
View file @
b16e32a3
...
...
@@ -50,7 +50,6 @@ typedef int Status;
#define MAX_PIXELFORMATS 8
struct
tagBITMAPOBJ
;
struct
tagCURSORICONINFO
;
struct
dce
;
...
...
@@ -82,6 +81,7 @@ typedef struct
/* X physical bitmap */
typedef
struct
{
HBITMAP
hbitmap
;
Pixmap
pixmap
;
int
pixmap_depth
;
struct
_X11DRV_DIBSECTION
*
dib
;
...
...
@@ -433,13 +433,10 @@ extern int *X11DRV_DIB_BuildColorMap( X11DRV_PDEVICE *physDev, WORD coloruse,
extern
INT
X11DRV_CoerceDIBSection
(
X11DRV_PDEVICE
*
physDev
,
INT
,
BOOL
);
extern
INT
X11DRV_LockDIBSection
(
X11DRV_PDEVICE
*
physDev
,
INT
,
BOOL
);
extern
void
X11DRV_UnlockDIBSection
(
X11DRV_PDEVICE
*
physDev
,
BOOL
);
extern
INT
X11DRV_CoerceDIBSection2
(
HBITMAP
bmp
,
INT
,
BOOL
);
extern
INT
X11DRV_LockDIBSection2
(
HBITMAP
bmp
,
INT
,
BOOL
);
extern
void
X11DRV_UnlockDIBSection2
(
HBITMAP
bmp
,
BOOL
);
extern
HBITMAP
X11DRV_DIB_CreateDIBSection
(
X11DRV_PDEVICE
*
physDev
,
const
BITMAPINFO
*
bmi
,
UINT
usage
,
VOID
**
bits
,
HANDLE
section
,
DWORD
offset
,
DWORD
ovr_pitch
);
extern
void
X11DRV_DIB_DeleteDIBSection
(
X_PHYSBITMAP
*
physBitmap
,
struct
tagBITMAPOBJ
*
bmp
);
extern
void
X11DRV_DIB_DeleteDIBSection
(
X_PHYSBITMAP
*
physBitmap
);
void
X11DRV_DIB_CopyDIBSection
(
X11DRV_PDEVICE
*
physDevSrc
,
X11DRV_PDEVICE
*
physDevDst
,
DWORD
xSrc
,
DWORD
ySrc
,
DWORD
xDest
,
DWORD
yDest
,
DWORD
width
,
DWORD
height
);
...
...
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