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
97e482bc
Commit
97e482bc
authored
Jul 28, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Jul 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add X11DRV_DIB_UpdateDIBSection2 that takes a HBITMAP parameter.
parent
d9b8f9be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
17 deletions
+31
-17
dib.c
graphics/x11drv/dib.c
+30
-17
x11drv.h
include/x11drv.h
+1
-0
No files found.
graphics/x11drv/dib.c
View file @
97e482bc
...
@@ -3186,25 +3186,12 @@ static BOOL X11DRV_DIB_FaultHandler( LPVOID res, LPCVOID addr )
...
@@ -3186,25 +3186,12 @@ static BOOL X11DRV_DIB_FaultHandler( LPVOID res, LPCVOID addr )
}
}
/***********************************************************************
/***********************************************************************
* X11DRV_DIB_UpdateDIBSection
* X11DRV_DIB_
Cmn
UpdateDIBSection
*/
*/
void
X11DRV_DIB_UpdateDIBSection
(
DC
*
dc
,
BOOL
toDIB
)
static
void
X11DRV_DIB_CmnUpdateDIBSection
(
BITMAPOBJ
*
bmp
,
BOOL
toDIB
)
{
{
BITMAPOBJ
*
bmp
;
/* Ensure this is a Compatible DC that has a DIB section selected */
if
(
!
dc
)
return
;
if
(
!
(
dc
->
w
.
flags
&
DC_MEMORY
))
return
;
bmp
=
(
BITMAPOBJ
*
)
GDI_GetObjPtr
(
dc
->
w
.
hBitmap
,
BITMAP_MAGIC
);
if
(
!
bmp
)
return
;
if
(
!
bmp
)
return
;
if
(
!
bmp
->
dib
)
return
;
if
(
!
bmp
->
dib
)
{
GDI_HEAP_UNLOCK
(
dc
->
w
.
hBitmap
);
return
;
}
if
(
!
toDIB
)
if
(
!
toDIB
)
{
{
...
@@ -3263,8 +3250,34 @@ void X11DRV_DIB_UpdateDIBSection(DC *dc, BOOL toDIB)
...
@@ -3263,8 +3250,34 @@ void X11DRV_DIB_UpdateDIBSection(DC *dc, BOOL toDIB)
break
;
break
;
}
}
}
}
}
/***********************************************************************
* X11DRV_DIB_UpdateDIBSection2
*/
void
X11DRV_DIB_UpdateDIBSection2
(
HBITMAP
hbmp
,
BOOL
toDIB
)
{
BITMAPOBJ
*
bmp
;
bmp
=
(
BITMAPOBJ
*
)
GDI_GetObjPtr
(
hbmp
,
BITMAP_MAGIC
);
if
(
!
bmp
)
return
;
X11DRV_DIB_CmnUpdateDIBSection
(
bmp
,
toDIB
);
GDI_HEAP_UNLOCK
(
hbmp
);
}
/***********************************************************************
* X11DRV_DIB_UpdateDIBSection
*/
void
X11DRV_DIB_UpdateDIBSection
(
DC
*
dc
,
BOOL
toDIB
)
{
/* Ensure this is a Compatible DC that has a DIB section selected */
if
(
!
dc
)
return
;
if
(
!
(
dc
->
w
.
flags
&
DC_MEMORY
))
return
;
GDI_HEAP_UNLOCK
(
dc
->
w
.
hBitmap
);
X11DRV_DIB_UpdateDIBSection2
(
dc
->
w
.
hBitmap
,
toDIB
);
}
}
/***********************************************************************
/***********************************************************************
...
...
include/x11drv.h
View file @
97e482bc
...
@@ -263,6 +263,7 @@ extern int *X11DRV_DIB_BuildColorMap( struct tagDC *dc, WORD coloruse,
...
@@ -263,6 +263,7 @@ extern int *X11DRV_DIB_BuildColorMap( struct tagDC *dc, WORD coloruse,
WORD
depth
,
const
BITMAPINFO
*
info
,
WORD
depth
,
const
BITMAPINFO
*
info
,
int
*
nColors
);
int
*
nColors
);
extern
void
X11DRV_DIB_UpdateDIBSection
(
struct
tagDC
*
dc
,
BOOL
toDIB
);
extern
void
X11DRV_DIB_UpdateDIBSection
(
struct
tagDC
*
dc
,
BOOL
toDIB
);
extern
void
X11DRV_DIB_UpdateDIBSection2
(
HBITMAP
hbmp
,
BOOL
toDIB
);
extern
HBITMAP
X11DRV_DIB_CreateDIBSection
(
struct
tagDC
*
dc
,
BITMAPINFO
*
bmi
,
UINT
usage
,
extern
HBITMAP
X11DRV_DIB_CreateDIBSection
(
struct
tagDC
*
dc
,
BITMAPINFO
*
bmi
,
UINT
usage
,
LPVOID
*
bits
,
HANDLE
section
,
DWORD
offset
,
DWORD
ovr_pitch
);
LPVOID
*
bits
,
HANDLE
section
,
DWORD
offset
,
DWORD
ovr_pitch
);
...
...
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