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
129021a0
Commit
129021a0
authored
Jun 06, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Jun 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move the code that checks for a colortable based dib to a separate function.
parent
fd2d6f39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
xrender.c
dlls/winex11.drv/xrender.c
+18
-6
No files found.
dlls/winex11.drv/xrender.c
View file @
129021a0
...
@@ -1788,6 +1788,22 @@ static int XRenderErrorHandler(Display *dpy, XErrorEvent *event, void *arg)
...
@@ -1788,6 +1788,22 @@ static int XRenderErrorHandler(Display *dpy, XErrorEvent *event, void *arg)
return
1
;
return
1
;
}
}
/********************************************************************
* is_dib_with_colortable
*
* Return TRUE if physdev is backed by a dibsection with <= 8 bits per pixel
*/
static
inline
BOOL
is_dib_with_colortable
(
X11DRV_PDEVICE
*
physDev
)
{
DIBSECTION
dib
;
if
(
physDev
->
bitmap
&&
GetObjectW
(
physDev
->
bitmap
->
hbitmap
,
sizeof
(
dib
),
&
dib
)
==
sizeof
(
dib
)
&&
dib
.
dsBmih
.
biBitCount
<=
8
)
return
TRUE
;
return
FALSE
;
}
/***********************************************************************
/***********************************************************************
* X11DRV_XRender_ExtTextOut
* X11DRV_XRender_ExtTextOut
*/
*/
...
@@ -1803,16 +1819,12 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
...
@@ -1803,16 +1819,12 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
HRGN
saved_region
=
0
;
HRGN
saved_region
=
0
;
BOOL
disable_antialias
=
FALSE
;
BOOL
disable_antialias
=
FALSE
;
AA_Type
aa_type
=
AA_None
;
AA_Type
aa_type
=
AA_None
;
DIBSECTION
bmp
;
unsigned
int
idx
;
unsigned
int
idx
;
const
WineXRenderFormat
*
dst_format
=
get_xrender_format_from_color_shifts
(
physDev
->
depth
,
physDev
->
color_shifts
);
const
WineXRenderFormat
*
dst_format
=
get_xrender_format_from_color_shifts
(
physDev
->
depth
,
physDev
->
color_shifts
);
Picture
tile_pict
=
0
;
Picture
tile_pict
=
0
;
/* Do we need to disable antialiasing because of palette mode? */
if
(
is_dib_with_colortable
(
physDev
))
if
(
!
physDev
->
bitmap
||
GetObjectW
(
physDev
->
bitmap
->
hbitmap
,
sizeof
(
bmp
),
&
bmp
)
!=
sizeof
(
bmp
)
)
{
{
TRACE
(
"bitmap is not a DIB
\n
"
);
}
else
if
(
bmp
.
dsBmih
.
biBitCount
<=
8
)
{
TRACE
(
"Disabling antialiasing
\n
"
);
TRACE
(
"Disabling antialiasing
\n
"
);
disable_antialias
=
TRUE
;
disable_antialias
=
TRUE
;
}
}
...
...
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