Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
73f88998
Commit
73f88998
authored
May 22, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXglyphcurs.c: use dixChangeCG()
parent
03d31d2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
NXglyphcurs.c
nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
+13
-18
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXglyphcurs.c
View file @
73f88998
...
...
@@ -100,6 +100,7 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
PixmapPtr
ppix
;
long
nby
;
char
*
pbits
;
ChangeGCVal
gcval
[
3
];
unsigned
char
char2b
[
2
];
/* turn glyph index into a protocol-format char2b */
...
...
@@ -114,7 +115,8 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
/* zeroing the (pad) bits seems to help some ddx cursor handling */
bzero
(
pbits
,
nby
);
ppix
=
fbCreatePixmap
(
pScreen
,
cm
->
width
,
cm
->
height
,
1
,
ppix
=
fbCreatePixmap
(
pScreen
,
cm
->
width
,
cm
->
height
,
1
,
CREATE_PIXMAP_USAGE_SCRATCH
);
pGC
=
GetScratchGC
(
1
,
pScreen
);
if
(
!
ppix
||
!
pGC
)
...
...
@@ -143,28 +145,21 @@ ServerBitsFromGlyph(FontPtr pfont, unsigned ch, register CursorMetricPtr cm, uns
rect
.
width
=
cm
->
width
;
rect
.
height
=
cm
->
height
;
pGC
->
stateChanges
|=
GCFunction
|
GCForeground
|
GCFont
;
pGC
->
alu
=
GXcopy
;
pGC
->
fgPixel
=
0
;
pfont
->
refcnt
++
;
if
(
pGC
->
font
)
CloseFont
(
pGC
->
font
,
(
Font
)
0
);
pGC
->
font
=
pfont
;
/* fill the pixmap with 0 */
gcval
[
0
].
val
=
GXcopy
;
gcval
[
1
].
val
=
0
;
gcval
[
2
].
ptr
=
(
void
*
)
pfont
;
dixChangeGC
(
NullClient
,
pGC
,
GCFunction
|
GCForeground
|
GCFont
,
NULL
,
gcval
);
ValidateGC
((
DrawablePtr
)
ppix
,
pGC
);
fbPolyFillRect
((
DrawablePtr
)
ppix
,
pGC
,
1
,
&
rect
);
/* draw the glyph */
pGC
->
fgPixel
=
1
;
pGC
->
stateChanges
|=
GCForeground
;
gcval
[
0
].
val
=
1
;
dixChangeGC
(
NullClient
,
pGC
,
GCForeground
,
NULL
,
gcval
);
ValidateGC
((
DrawablePtr
)
ppix
,
pGC
);
miPolyText16
((
DrawablePtr
)
ppix
,
pGC
,
(
int
)
cm
->
xhot
,
(
int
)
cm
->
yhot
,
(
int
)
1
,
(
unsigned
short
*
)
char2b
);
miPolyText16
((
DrawablePtr
)
ppix
,
pGC
,
(
int
)
cm
->
xhot
,
(
int
)
cm
->
yhot
,
(
int
)
1
,
(
unsigned
short
*
)
char2b
);
fbGetImage
((
DrawablePtr
)
ppix
,
0
,
0
,
cm
->
width
,
cm
->
height
,
XYPixmap
,
1
,
pbits
);
*
ppbits
=
(
unsigned
char
*
)
pbits
;
...
...
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