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
93758c43
Commit
93758c43
authored
May 23, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Remove the CreateBitmap and DeleteBitmap driver entry points.
parent
1416d0e6
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1 addition
and
156 deletions
+1
-156
dc.c
dlls/gdi32/dibdrv/dc.c
+0
-10
driver.c
dlls/gdi32/driver.c
+0
-12
init.c
dlls/gdi32/enhmfdrv/init.c
+0
-2
freetype.c
dlls/gdi32/freetype.c
+0
-2
init.c
dlls/gdi32/mfdrv/init.c
+0
-2
path.c
dlls/gdi32/path.c
+0
-2
init.c
dlls/wineps.drv/init.c
+0
-2
bitmap.c
dlls/winex11.drv/bitmap.c
+0
-48
init.c
dlls/winex11.drv/init.c
+0
-2
opengl.c
dlls/winex11.drv/opengl.c
+0
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-2
xrender.c
dlls/winex11.drv/xrender.c
+0
-67
gdi_driver.h
include/wine/gdi_driver.h
+1
-3
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
93758c43
...
...
@@ -346,14 +346,6 @@ static BOOL dibdrv_DeleteDC( PHYSDEV dev )
}
/***********************************************************************
* dibdrv_DeleteBitmap
*/
static
BOOL
dibdrv_DeleteBitmap
(
HBITMAP
bitmap
)
{
return
TRUE
;
}
/***********************************************************************
* dibdrv_SelectBitmap
*/
static
HBITMAP
dibdrv_SelectBitmap
(
PHYSDEV
dev
,
HBITMAP
bitmap
)
...
...
@@ -431,10 +423,8 @@ const struct gdi_dc_funcs dib_driver =
NULL
,
/* pChoosePixelFormat */
dibdrv_Chord
,
/* pChord */
NULL
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
NULL
,
/* pCreateCompatibleDC */
dibdrv_CreateDC
,
/* pCreateDC */
dibdrv_DeleteBitmap
,
/* pDeleteBitmap */
dibdrv_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
dlls/gdi32/driver.c
View file @
93758c43
...
...
@@ -209,11 +209,6 @@ static BOOL nulldrv_Chord( PHYSDEV dev, INT left, INT top, INT right, INT bottom
return
TRUE
;
}
static
BOOL
nulldrv_CreateBitmap
(
PHYSDEV
dev
,
HBITMAP
bitmap
)
{
return
TRUE
;
}
static
BOOL
nulldrv_CreateCompatibleDC
(
PHYSDEV
orig
,
PHYSDEV
*
pdev
)
{
if
(
!
display_driver
||
!
display_driver
->
funcs
->
pCreateCompatibleDC
)
return
TRUE
;
...
...
@@ -227,11 +222,6 @@ static BOOL nulldrv_CreateDC( PHYSDEV *dev, LPCWSTR driver, LPCWSTR device,
return
FALSE
;
}
static
BOOL
nulldrv_DeleteBitmap
(
HBITMAP
bitmap
)
{
return
TRUE
;
}
static
BOOL
nulldrv_DeleteDC
(
PHYSDEV
dev
)
{
assert
(
0
);
/* should never be called */
...
...
@@ -748,10 +738,8 @@ const struct gdi_dc_funcs null_driver =
nulldrv_ChoosePixelFormat
,
/* pChoosePixelFormat */
nulldrv_Chord
,
/* pChord */
nulldrv_CloseFigure
,
/* pCloseFigure */
nulldrv_CreateBitmap
,
/* pCreateBitmap */
nulldrv_CreateCompatibleDC
,
/* pCreateCompatibleDC */
nulldrv_CreateDC
,
/* pCreateDC */
nulldrv_DeleteBitmap
,
/* pDeleteBitmap */
nulldrv_DeleteDC
,
/* pDeleteDC */
nulldrv_DeleteObject
,
/* pDeleteObject */
nulldrv_DescribePixelFormat
,
/* pDescribePixelFormat */
...
...
dlls/gdi32/enhmfdrv/init.c
View file @
93758c43
...
...
@@ -47,10 +47,8 @@ static const struct gdi_dc_funcs EMFDRV_Funcs =
NULL
,
/* pChoosePixelFormat */
EMFDRV_Chord
,
/* pChord */
EMFDRV_CloseFigure
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
NULL
,
/* pCreateCompatibleDC */
NULL
,
/* pCreateDC */
NULL
,
/* pDeleteBitmap */
EMFDRV_DeleteDC
,
/* pDeleteDC */
EMFDRV_DeleteObject
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
dlls/gdi32/freetype.c
View file @
93758c43
...
...
@@ -7751,10 +7751,8 @@ static const struct gdi_dc_funcs freetype_funcs =
NULL
,
/* pChoosePixelFormat */
NULL
,
/* pChord */
NULL
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
NULL
,
/* pCreateCompatibleDC */
freetype_CreateDC
,
/* pCreateDC */
NULL
,
/* pDeleteBitmap */
freetype_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
dlls/gdi32/mfdrv/init.c
View file @
93758c43
...
...
@@ -110,10 +110,8 @@ static const struct gdi_dc_funcs MFDRV_Funcs =
NULL
,
/* pChoosePixelFormat */
MFDRV_Chord
,
/* pChord */
MFDRV_CloseFigure
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
MFDRV_CreateCompatibleDC
,
/* pCreateCompatibleDC */
NULL
,
/* pCreateDC */
NULL
,
/* pDeleteBitmap */
MFDRV_DeleteDC
,
/* pDeleteDC */
MFDRV_DeleteObject
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
dlls/gdi32/path.c
View file @
93758c43
...
...
@@ -2244,10 +2244,8 @@ const struct gdi_dc_funcs path_driver =
NULL
,
/* pChoosePixelFormat */
pathdrv_Chord
,
/* pChord */
pathdrv_CloseFigure
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
NULL
,
/* pCreateCompatibleDC */
pathdrv_CreateDC
,
/* pCreateDC */
NULL
,
/* pDeleteBitmap */
pathdrv_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
dlls/wineps.drv/init.c
View file @
93758c43
...
...
@@ -829,10 +829,8 @@ static const struct gdi_dc_funcs psdrv_funcs =
NULL
,
/* pChoosePixelFormat */
PSDRV_Chord
,
/* pChord */
NULL
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
PSDRV_CreateCompatibleDC
,
/* pCreateCompatibleDC */
PSDRV_CreateDC
,
/* pCreateDC */
NULL
,
/* pDeleteBitmap */
PSDRV_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
dlls/winex11.drv/bitmap.c
View file @
93758c43
...
...
@@ -164,54 +164,6 @@ X_PHYSBITMAP *X11DRV_create_phys_bitmap( HBITMAP hbitmap, const BITMAP *bitmap,
}
/****************************************************************************
* CreateBitmap (X11DRV.@)
*
* Create a device dependent X11 bitmap
*
* Returns TRUE on success else FALSE
*/
BOOL
X11DRV_CreateBitmap
(
PHYSDEV
dev
,
HBITMAP
hbitmap
)
{
BITMAP
bitmap
;
X_PHYSBITMAP
*
phys_bitmap
;
if
(
!
GetObjectW
(
hbitmap
,
sizeof
(
bitmap
),
&
bitmap
))
return
FALSE
;
if
(
bitmap
.
bmBitsPixel
==
1
)
{
if
(
!
(
phys_bitmap
=
X11DRV_create_phys_bitmap
(
hbitmap
,
&
bitmap
,
1
)))
return
FALSE
;
phys_bitmap
->
trueColor
=
FALSE
;
}
else
{
if
(
!
(
phys_bitmap
=
X11DRV_create_phys_bitmap
(
hbitmap
,
&
bitmap
,
screen_depth
)))
return
FALSE
;
phys_bitmap
->
trueColor
=
(
visual
->
class
==
TrueColor
||
visual
->
class
==
DirectColor
);
phys_bitmap
->
color_shifts
=
X11DRV_PALETTE_default_shifts
;
}
return
TRUE
;
}
/***********************************************************************
* DeleteBitmap (X11DRV.@)
*/
BOOL
X11DRV_DeleteBitmap
(
HBITMAP
hbitmap
)
{
X_PHYSBITMAP
*
physBitmap
=
X11DRV_get_phys_bitmap
(
hbitmap
);
if
(
physBitmap
)
{
wine_tsx11_lock
();
if
(
physBitmap
->
pixmap
)
XFreePixmap
(
gdi_display
,
physBitmap
->
pixmap
);
XDeleteContext
(
gdi_display
,
(
XID
)
hbitmap
,
bitmap_context
);
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
physBitmap
);
}
return
TRUE
;
}
/***********************************************************************
* X11DRV_get_phys_bitmap
*
...
...
dlls/winex11.drv/init.c
View file @
93758c43
...
...
@@ -516,10 +516,8 @@ static const struct gdi_dc_funcs x11drv_funcs =
X11DRV_ChoosePixelFormat
,
/* pChoosePixelFormat */
X11DRV_Chord
,
/* pChord */
NULL
,
/* pCloseFigure */
X11DRV_CreateBitmap
,
/* pCreateBitmap */
X11DRV_CreateCompatibleDC
,
/* pCreateCompatibleDC */
X11DRV_CreateDC
,
/* pCreateDC */
X11DRV_DeleteBitmap
,
/* pDeleteBitmap */
X11DRV_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
X11DRV_DescribePixelFormat
,
/* pDescribePixelFormat */
...
...
dlls/winex11.drv/opengl.c
View file @
93758c43
...
...
@@ -3935,10 +3935,8 @@ static const struct gdi_dc_funcs glxdrv_funcs =
glxdrv_ChoosePixelFormat
,
/* pChoosePixelFormat */
NULL
,
/* pChord */
NULL
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
glxdrv_CreateCompatibleDC
,
/* pCreateCompatibleDC */
glxdrv_CreateDC
,
/* pCreateDC */
NULL
,
/* pDeleteBitmap */
glxdrv_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
glxdrv_DescribePixelFormat
,
/* pDescribePixelFormat */
...
...
dlls/winex11.drv/x11drv.h
View file @
93758c43
...
...
@@ -173,8 +173,6 @@ extern BOOL X11DRV_Arc( PHYSDEV dev, INT left, INT top, INT right,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_Chord
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
xstart
,
INT
ystart
,
INT
xend
,
INT
yend
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_CreateBitmap
(
PHYSDEV
dev
,
HBITMAP
hbitmap
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_DeleteBitmap
(
HBITMAP
hbitmap
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_Ellipse
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
DECLSPEC_HIDDEN
;
extern
INT
X11DRV_EnumICMProfiles
(
PHYSDEV
dev
,
ICMENUMPROCW
proc
,
LPARAM
lparam
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_ExtFloodFill
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
COLORREF
color
,
UINT
fillType
)
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/xrender.c
View file @
93758c43
...
...
@@ -515,22 +515,6 @@ static enum wxr_format get_xrender_format_from_bitmapinfo( const BITMAPINFO *inf
return
WXR_INVALID_FORMAT
;
}
static
enum
wxr_format
get_bitmap_format
(
int
bpp
)
{
enum
wxr_format
format
=
WXR_INVALID_FORMAT
;
if
(
bpp
==
screen_bpp
)
{
switch
(
bpp
)
{
case
16
:
format
=
WXR_FORMAT_R5G6B5
;
break
;
case
24
:
format
=
WXR_FORMAT_R8G8B8
;
break
;
case
32
:
format
=
WXR_FORMAT_A8R8G8B8
;
break
;
}
}
return
format
;
}
/* Set the x/y scaling and x/y offsets in the transformation matrix of the source picture */
static
void
set_xrender_transformation
(
Picture
src_pict
,
double
xscale
,
double
yscale
,
int
xoffset
,
int
yoffset
)
{
...
...
@@ -1247,55 +1231,6 @@ static INT xrenderdrv_ExtEscape( PHYSDEV dev, INT escape, INT in_count, LPCVOID
return
dev
->
funcs
->
pExtEscape
(
dev
,
escape
,
in_count
,
in_data
,
out_count
,
out_data
);
}
/****************************************************************************
* xrenderdrv_CreateBitmap
*/
static
BOOL
xrenderdrv_CreateBitmap
(
PHYSDEV
dev
,
HBITMAP
hbitmap
)
{
enum
wxr_format
format
=
WXR_INVALID_FORMAT
;
X_PHYSBITMAP
*
phys_bitmap
;
BITMAP
bitmap
;
if
(
!
GetObjectW
(
hbitmap
,
sizeof
(
bitmap
),
&
bitmap
))
return
FALSE
;
if
(
bitmap
.
bmBitsPixel
==
1
)
{
if
(
!
(
phys_bitmap
=
X11DRV_create_phys_bitmap
(
hbitmap
,
&
bitmap
,
1
)))
return
FALSE
;
phys_bitmap
->
format
=
WXR_FORMAT_MONO
;
phys_bitmap
->
trueColor
=
FALSE
;
}
else
{
format
=
get_bitmap_format
(
bitmap
.
bmBitsPixel
);
if
(
pict_formats
[
format
])
{
if
(
!
(
phys_bitmap
=
X11DRV_create_phys_bitmap
(
hbitmap
,
&
bitmap
,
pict_formats
[
format
]
->
depth
)))
return
FALSE
;
phys_bitmap
->
format
=
format
;
phys_bitmap
->
trueColor
=
TRUE
;
phys_bitmap
->
color_shifts
=
wxr_color_shifts
[
format
];
}
else
{
if
(
!
(
phys_bitmap
=
X11DRV_create_phys_bitmap
(
hbitmap
,
&
bitmap
,
screen_depth
)))
return
FALSE
;
phys_bitmap
->
format
=
WXR_INVALID_FORMAT
;
phys_bitmap
->
trueColor
=
(
visual
->
class
==
TrueColor
||
visual
->
class
==
DirectColor
);
phys_bitmap
->
color_shifts
=
X11DRV_PALETTE_default_shifts
;
}
}
return
TRUE
;
}
/****************************************************************************
* xrenderdrv_DeleteBitmap
*/
static
BOOL
xrenderdrv_DeleteBitmap
(
HBITMAP
hbitmap
)
{
return
X11DRV_DeleteBitmap
(
hbitmap
);
}
/***********************************************************************
* xrenderdrv_SelectBitmap
*/
...
...
@@ -2590,10 +2525,8 @@ static const struct gdi_dc_funcs xrender_funcs =
NULL
,
/* pChoosePixelFormat */
NULL
,
/* pChord */
NULL
,
/* pCloseFigure */
xrenderdrv_CreateBitmap
,
/* pCreateBitmap */
xrenderdrv_CreateCompatibleDC
,
/* pCreateCompatibleDC */
xrenderdrv_CreateDC
,
/* pCreateDC */
xrenderdrv_DeleteBitmap
,
/* pDeleteBitmap */
xrenderdrv_DeleteDC
,
/* pDeleteDC */
NULL
,
/* pDeleteObject */
NULL
,
/* pDescribePixelFormat */
...
...
include/wine/gdi_driver.h
View file @
93758c43
...
...
@@ -72,10 +72,8 @@ struct gdi_dc_funcs
INT
(
*
pChoosePixelFormat
)(
PHYSDEV
,
const
PIXELFORMATDESCRIPTOR
*
);
BOOL
(
*
pChord
)(
PHYSDEV
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
BOOL
(
*
pCloseFigure
)(
PHYSDEV
);
BOOL
(
*
pCreateBitmap
)(
PHYSDEV
,
HBITMAP
);
BOOL
(
*
pCreateCompatibleDC
)(
PHYSDEV
,
PHYSDEV
*
);
BOOL
(
*
pCreateDC
)(
PHYSDEV
*
,
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
const
DEVMODEW
*
);
BOOL
(
*
pDeleteBitmap
)(
HBITMAP
);
BOOL
(
*
pDeleteDC
)(
PHYSDEV
);
BOOL
(
*
pDeleteObject
)(
PHYSDEV
,
HGDIOBJ
);
INT
(
*
pDescribePixelFormat
)(
PHYSDEV
,
INT
,
UINT
,
PIXELFORMATDESCRIPTOR
*
);
...
...
@@ -211,7 +209,7 @@ struct gdi_dc_funcs
};
/* increment this when you change the DC function table */
#define WINE_GDI_DRIVER_VERSION 3
0
#define WINE_GDI_DRIVER_VERSION 3
1
#define GDI_PRIORITY_NULL_DRV 0
/* null driver */
#define GDI_PRIORITY_FONT_DRV 100
/* any font driver */
...
...
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