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
f7207bcd
Commit
f7207bcd
authored
Nov 05, 2017
by
Ulrich Sibiller
Committed by
Mike Gabriel
Feb 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lift fb to xorg-xserver-7.1/1.1 state
Fixes ArcticaProject/nx-libs#640
parent
b1c42dc9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
3 deletions
+42
-3
fbblt.c
nx-X11/programs/Xserver/fb/fbblt.c
+24
-0
fbcompose.c
nx-X11/programs/Xserver/fb/fbcompose.c
+0
-0
fbgc.c
nx-X11/programs/Xserver/fb/fbgc.c
+7
-2
fbpict.h
nx-X11/programs/Xserver/fb/fbpict.h
+1
-1
picture.h
nx-X11/programs/Xserver/render/picture.h
+10
-0
No files found.
nx-X11/programs/Xserver/fb/fbblt.c
View file @
f7207bcd
...
...
@@ -26,6 +26,7 @@
#include <dix-config.h>
#endif
#include <string.h>
#include "fb.h"
#define InitializeShifts(sx,dx,ls,rs) { \
...
...
@@ -76,6 +77,29 @@ fbBlt (FbBits *srcLine,
return
;
}
#endif
if
(
alu
==
GXcopy
&&
pm
==
FB_ALLONES
&&
!
reverse
&&
!
(
srcX
&
7
)
&&
!
(
dstX
&
7
)
&&
!
(
width
&
7
))
{
int
i
;
CARD8
*
src
=
(
CARD8
*
)
srcLine
;
CARD8
*
dst
=
(
CARD8
*
)
dstLine
;
srcStride
*=
sizeof
(
FbBits
);
dstStride
*=
sizeof
(
FbBits
);
width
>>=
3
;
src
+=
(
srcX
>>
3
);
dst
+=
(
dstX
>>
3
);
if
(
!
upsidedown
)
for
(
i
=
0
;
i
<
height
;
i
++
)
memcpy
(
dst
+
i
*
dstStride
,
src
+
i
*
srcStride
,
width
);
else
for
(
i
=
height
-
1
;
i
>=
0
;
i
--
)
memcpy
(
dst
+
i
*
dstStride
,
src
+
i
*
srcStride
,
width
);
return
;
}
FbInitializeMergeRop
(
alu
,
pm
);
destInvarient
=
FbDestInvarientMergeRop
();
if
(
upsidedown
)
...
...
nx-X11/programs/Xserver/fb/fbcompose.c
View file @
f7207bcd
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/fb/fbgc.c
View file @
f7207bcd
...
...
@@ -98,9 +98,13 @@ fbPadPixmap (PixmapPtr pPixmap)
FbBits
mask
;
int
height
;
int
w
;
int
stride
;
int
bpp
;
_X_UNUSED
int
xOff
,
yOff
;
fbGetDrawable
(
&
pPixmap
->
drawable
,
bits
,
stride
,
bpp
,
xOff
,
yOff
);
width
=
pPixmap
->
drawable
.
width
*
pPixmap
->
drawable
.
bitsPerPixel
;
bits
=
pPixmap
->
devPrivate
.
ptr
;
height
=
pPixmap
->
drawable
.
height
;
mask
=
FbBitsMask
(
0
,
width
);
while
(
height
--
)
...
...
@@ -112,7 +116,8 @@ fbPadPixmap (PixmapPtr pPixmap)
b
=
b
|
FbScrRight
(
b
,
w
);
w
<<=
1
;
}
*
bits
++
=
b
;
*
bits
=
b
;
bits
+=
stride
;
}
}
...
...
nx-X11/programs/Xserver/fb/fbpict.h
View file @
f7207bcd
...
...
@@ -171,7 +171,7 @@
x = (x + ((x >> 8) & 0xff00ff)) >> 8; \
x &= 0xff00ff; \
x += (y >> 8) & 0xff00ff; \
x |= 0x1000100 - ((
t
>> 8) & 0xff00ff); \
x |= 0x1000100 - ((
x
>> 8) & 0xff00ff); \
x &= 0xff00ff; \
x <<= 8; \
x += t; \
...
...
nx-X11/programs/Xserver/render/picture.h
View file @
f7207bcd
/*
*
* Copyright © 2000 SuSE, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
...
...
@@ -98,6 +99,15 @@ typedef struct _Picture *PicturePtr;
#define PICT_c8 PICT_FORMAT(8,PICT_TYPE_COLOR,0,0,0,0)
#define PICT_g8 PICT_FORMAT(8,PICT_TYPE_GRAY,0,0,0,0)
#define PICT_x4a4 PICT_FORMAT(8,PICT_TYPE_A,4,0,0,0)
#define PICT_x4r1g2b1 PICT_FORMAT(8,PICT_TYPE_ARGB,0,1,2,1)
#define PICT_x4b1g2r1 PICT_FORMAT(8,PICT_TYPE_ABGR,0,1,2,1)
#define PICT_x4a1r1g1b1 PICT_FORMAT(8,PICT_TYPE_ARGB,1,1,1,1)
#define PICT_x4a1b1g1r1 PICT_FORMAT(8,PICT_TYPE_ABGR,1,1,1,1)
#define PICT_x4c4 PICT_FORMAT(8,PICT_TYPE_COLOR,0,0,0,0)
#define PICT_x4g4 PICT_FORMAT(8,PICT_TYPE_GRAY,0,0,0,0)
/* 4bpp formats */
#define PICT_a4 PICT_FORMAT(4,PICT_TYPE_A,4,0,0,0)
#define PICT_r1g2b1 PICT_FORMAT(4,PICT_TYPE_ARGB,0,1,2,1)
...
...
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