Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dd982376
Commit
dd982376
authored
Nov 13, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Major fixes for the software accel functions. We have the penguin back.
parent
4ffc21e2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
954 additions
and
1013 deletions
+954
-1013
drivers/video/cfbcopyarea.c
drivers/video/cfbcopyarea.c
+325
-599
drivers/video/cfbcursor.c
drivers/video/cfbcursor.c
+29
-29
drivers/video/cfbfillrect.c
drivers/video/cfbfillrect.c
+384
-170
drivers/video/cfbimgblt.c
drivers/video/cfbimgblt.c
+216
-215
No files found.
drivers/video/cfbcopyarea.c
View file @
dd982376
This diff is collapsed.
Click to expand it.
drivers/video/cfbcursor.c
View file @
dd982376
...
...
@@ -23,38 +23,38 @@ int cfb_cursor(struct fb_info *info, struct fbcursor *cursor)
struct
fb_image
image
;
static
char
data
[
64
];
image
.
bg_color
=
cursor
->
index
->
entry
[
0
];
image
.
fg_color
=
cursor
->
index
->
entry
[
1
];
if
(
cursor
->
enable
)
{
switch
(
cursor
->
rop
)
{
case
ROP_XOR
:
for
(
i
=
0
;
i
<
size
;
i
++
)
data
[
i
]
=
(
cursor
->
image
[
i
]
&
cursor
->
mask
[
i
])
^
cursor
->
dest
[
i
];
break
;
case
ROP_COPY
:
default:
for
(
i
=
0
;
i
<
size
;
i
++
)
data
[
i
]
=
cursor
->
image
[
i
]
&
cursor
->
mask
[
i
];
break
;
}
}
else
memcpy
(
data
,
cursor
->
dest
,
size
);
if
(
cursor
->
depth
==
1
)
{
if
(
cursor
->
enable
)
{
switch
(
cursor
->
rop
)
{
case
ROP_XOR
:
for
(
i
=
0
;
i
<
size
;
i
++
)
data
[
i
]
=
(
cursor
->
image
[
i
]
&
cursor
->
mask
[
i
])
^
cursor
->
dest
[
i
];
break
;
case
ROP_COPY
:
default:
for
(
i
=
0
;
i
<
size
;
i
++
)
data
[
i
]
=
cursor
->
image
[
i
]
&
cursor
->
mask
[
i
];
break
;
}
}
else
memcpy
(
data
,
cursor
->
dest
,
size
);
image
.
dx
=
cursor
->
pos
.
x
;
image
.
dy
=
cursor
->
pos
.
y
;
image
.
width
=
cursor
->
size
.
x
;
image
.
height
=
cursor
->
size
.
y
;
image
.
depth
=
cursor
->
depth
;
image
.
data
=
data
;
if
(
info
->
fbops
->
fb_imageblit
)
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
image
.
bg_color
=
cursor
->
index
->
entry
[
0
];
image
.
fg_color
=
cursor
->
index
->
entry
[
1
];
}
image
.
dx
=
cursor
->
pos
.
x
;
image
.
dy
=
cursor
->
pos
.
y
;
image
.
width
=
cursor
->
size
.
x
;
image
.
height
=
cursor
->
size
.
y
;
image
.
depth
=
cursor
->
depth
;
image
.
data
=
data
;
if
(
info
->
fbops
->
fb_imageblit
)
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
return
0
;
}
...
...
drivers/video/cfbfillrect.c
View file @
dd982376
This diff is collapsed.
Click to expand it.
drivers/video/cfbimgblt.c
View file @
dd982376
This diff is collapsed.
Click to expand it.
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