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
91d1608a
Commit
91d1608a
authored
Nov 06, 1998
by
Huw D M Davies
Committed by
Alexandre Julliard
Nov 06, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved X11 DIB stuff to x11drv.
parent
cd11f29c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
5 deletions
+40
-5
Makefile.in
graphics/x11drv/Makefile.in
+3
-2
dib.c
graphics/x11drv/dib.c
+0
-0
init.c
graphics/x11drv/init.c
+3
-1
x11drv.h
include/x11drv.h
+34
-0
dib.c
objects/dib.c
+0
-0
gdiobj.c
objects/gdiobj.c
+0
-2
No files found.
graphics/x11drv/Makefile.in
View file @
91d1608a
...
...
@@ -10,12 +10,13 @@ C_SRCS = \
bitmap.c
\
brush.c
\
clipping.c
\
xfont
.c
\
dib
.c
\
graphics.c
\
init.c
\
objects.c
\
pen.c
\
text.c
text.c
\
xfont.c
all
:
$(MODULE).o
...
...
graphics/x11drv/dib.c
0 → 100644
View file @
91d1608a
This diff is collapsed.
Click to expand it.
graphics/x11drv/init.c
View file @
91d1608a
...
...
@@ -66,7 +66,7 @@ static const DC_FUNCTIONS X11DRV_Funcs =
X11DRV_SetBkColor
,
/* pSetBkColor */
NULL
,
/* pSetBkMode */
X11DRV_SetDeviceClipping
,
/* pSetDeviceClipping */
NULL
,
/* pSetDIBitsToDevice */
X11DRV_SetDIBitsToDevice
,
/* pSetDIBitsToDevice */
NULL
,
/* pSetMapMode (optional) */
NULL
,
/* pSetMapperFlags */
X11DRV_SetPixel
,
/* pSetPixel */
...
...
@@ -115,6 +115,8 @@ BOOL32 X11DRV_Init(void)
{
/* FIXME: colormap management should be merged with the X11DRV */
if
(
!
X11DRV_DIB_Init
()
)
return
FALSE
;
if
(
!
COLOR_Init
()
)
return
FALSE
;
/* Finish up device caps */
...
...
include/x11drv.h
View file @
91d1608a
...
...
@@ -141,6 +141,7 @@ extern INT32 X11DRV_DeviceBitmapBits( struct tagDC *dc, HBITMAP32 hbitmap,
extern
BOOL32
X11DRV_BITMAP_Init
(
void
);
extern
BOOL32
X11DRV_BRUSH_Init
(
void
);
extern
BOOL32
X11DRV_DIB_Init
(
void
);
extern
BOOL32
X11DRV_FONT_Init
(
struct
tagDeviceCaps
*
);
struct
tagBITMAPOBJ
;
...
...
@@ -163,5 +164,38 @@ extern void _XInitImageFuncPtrs(XImage *);
(width), (height), 32, width_bytes ); \
}
/* exported dib functions for now */
/* This structure holds the arguments for DIB_SetImageBits() */
typedef
struct
{
struct
tagDC
*
dc
;
LPCVOID
bits
;
XImage
*
image
;
int
lines
;
DWORD
infoWidth
;
WORD
depth
;
WORD
infoBpp
;
WORD
compression
;
int
*
colorMap
;
int
nColorMap
;
Drawable
drawable
;
GC
gc
;
int
xSrc
;
int
ySrc
;
int
xDest
;
int
yDest
;
int
width
;
int
height
;
}
DIB_SETIMAGEBITS_DESCR
;
extern
int
X11DRV_DIB_GetImageBits
(
const
DIB_SETIMAGEBITS_DESCR
*
descr
);
extern
int
X11DRV_DIB_SetImageBits
(
const
DIB_SETIMAGEBITS_DESCR
*
descr
);
extern
int
*
X11DRV_DIB_BuildColorMap
(
struct
tagDC
*
dc
,
WORD
coloruse
,
WORD
depth
,
const
BITMAPINFO
*
info
,
int
*
nColors
);
#endif
/* __WINE_X11DRV_H */
objects/dib.c
View file @
91d1608a
This diff is collapsed.
Click to expand it.
objects/gdiobj.c
View file @
91d1608a
...
...
@@ -244,8 +244,6 @@ BOOL32 GDI_Init(void)
/* Initialize drivers */
DIB_Init
();
/* always before X11DRV_Init() */
if
(
!
X11DRV_Init
()
)
return
FALSE
;
...
...
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