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
38828c4e
Commit
38828c4e
authored
Mar 15, 2000
by
Karl Lessard
Committed by
Alexandre Julliard
Mar 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update DIB sections in text output and for graphics primitives.
parent
83674ecc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
15 deletions
+127
-15
graphics.c
graphics/x11drv/graphics.c
+113
-12
text.c
graphics/x11drv/text.c
+14
-3
No files found.
graphics/x11drv/graphics.c
View file @
38828c4e
This diff is collapsed.
Click to expand it.
graphics/x11drv/text.c
View file @
38828c4e
...
...
@@ -42,6 +42,7 @@ X11DRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
BOOL
rotated
=
FALSE
;
X11DRV_PDEVICE
*
physDev
=
(
X11DRV_PDEVICE
*
)
dc
->
physDev
;
XChar2b
*
str2b
;
BOOL
dibUpdateFlag
=
FALSE
;
if
(
!
X11DRV_SetupGCForText
(
dc
))
return
TRUE
;
...
...
@@ -109,12 +110,14 @@ X11DRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
if
(
flags
&
ETO_OPAQUE
)
{
TSXSetForeground
(
display
,
physDev
->
gc
,
physDev
->
backgroundPixel
);
TSXFillRectangle
(
display
,
physDev
->
drawable
,
physDev
->
gc
,
X11DRV_DIB_UpdateDIBSection
(
dc
,
FALSE
);
dibUpdateFlag
=
TRUE
;
TSXSetForeground
(
display
,
physDev
->
gc
,
physDev
->
backgroundPixel
);
TSXFillRectangle
(
display
,
physDev
->
drawable
,
physDev
->
gc
,
dc
->
w
.
DCOrgX
+
rect
.
left
,
dc
->
w
.
DCOrgY
+
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
);
}
if
(
!
count
)
return
TRUE
;
/* Nothing more to do */
if
(
!
count
)
goto
END
;
/* Nothing more to do */
/* Compute text starting position */
...
...
@@ -189,6 +192,12 @@ X11DRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
/* Draw the text background if necessary */
if
(
!
dibUpdateFlag
)
{
X11DRV_DIB_UpdateDIBSection
(
dc
,
FALSE
);
dibUpdateFlag
=
TRUE
;
}
if
(
dc
->
w
.
backgroundMode
!=
TRANSPARENT
)
{
/* If rectangle is opaque and clipped, do nothing */
...
...
@@ -357,6 +366,8 @@ X11DRV_ExtTextOut( DC *dc, INT x, INT y, UINT flags,
if
(
flags
&
ETO_CLIPPED
)
RestoreVisRgn16
(
dc
->
hSelf
);
END
:
if
(
dibUpdateFlag
)
X11DRV_DIB_UpdateDIBSection
(
dc
,
TRUE
);
return
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