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
7aabce2b
Commit
7aabce2b
authored
Nov 18, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nuked font related info in struct display. Almost gone now.
parent
fff20816
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
105 additions
and
111 deletions
+105
-111
drivers/video/console/fbcon-accel.c
drivers/video/console/fbcon-accel.c
+23
-22
drivers/video/console/fbcon.c
drivers/video/console/fbcon.c
+82
-87
drivers/video/console/fbcon.h
drivers/video/console/fbcon.h
+0
-2
No files found.
drivers/video/console/fbcon-accel.c
View file @
7aabce2b
...
@@ -22,14 +22,15 @@ void fbcon_accel_bmove(struct display *p, int sy, int sx, int dy, int dx,
...
@@ -22,14 +22,15 @@ void fbcon_accel_bmove(struct display *p, int sy, int sx, int dy, int dx,
int
height
,
int
width
)
int
height
,
int
width
)
{
{
struct
fb_info
*
info
=
p
->
fb_info
;
struct
fb_info
*
info
=
p
->
fb_info
;
struct
vc_data
*
vc
=
p
->
conp
;
struct
fb_copyarea
area
;
struct
fb_copyarea
area
;
area
.
sx
=
sx
*
fontwidth
(
p
)
;
area
.
sx
=
sx
*
vc
->
vc_font
.
width
;
area
.
sy
=
sy
*
fontheight
(
p
)
;
area
.
sy
=
sy
*
vc
->
vc_font
.
height
;
area
.
dx
=
dx
*
fontwidth
(
p
)
;
area
.
dx
=
dx
*
vc
->
vc_font
.
width
;
area
.
dy
=
dy
*
fontheight
(
p
)
;
area
.
dy
=
dy
*
vc
->
vc_font
.
height
;
area
.
height
=
height
*
fontheight
(
p
)
;
area
.
height
=
height
*
vc
->
vc_font
.
height
;
area
.
width
=
width
*
fontwidth
(
p
)
;
area
.
width
=
width
*
vc
->
vc_font
.
width
;
info
->
fbops
->
fb_copyarea
(
info
,
&
area
);
info
->
fbops
->
fb_copyarea
(
info
,
&
area
);
}
}
...
@@ -41,10 +42,10 @@ void fbcon_accel_clear(struct vc_data *vc, struct display *p, int sy,
...
@@ -41,10 +42,10 @@ void fbcon_accel_clear(struct vc_data *vc, struct display *p, int sy,
struct
fb_fillrect
region
;
struct
fb_fillrect
region
;
region
.
color
=
attr_bgcol_ec
(
p
,
vc
);
region
.
color
=
attr_bgcol_ec
(
p
,
vc
);
region
.
dx
=
sx
*
fontwidth
(
p
)
;
region
.
dx
=
sx
*
vc
->
vc_font
.
width
;
region
.
dy
=
sy
*
fontheight
(
p
)
;
region
.
dy
=
sy
*
vc
->
vc_font
.
height
;
region
.
width
=
width
*
fontwidth
(
p
)
;
region
.
width
=
width
*
vc
->
vc_font
.
width
;
region
.
height
=
height
*
fontheight
(
p
)
;
region
.
height
=
height
*
vc
->
vc_font
.
height
;
region
.
rop
=
ROP_COPY
;
region
.
rop
=
ROP_COPY
;
info
->
fbops
->
fb_fillrect
(
info
,
&
region
);
info
->
fbops
->
fb_fillrect
(
info
,
&
region
);
...
@@ -55,23 +56,23 @@ void fbcon_accel_putcs(struct vc_data *vc, struct display *p,
...
@@ -55,23 +56,23 @@ void fbcon_accel_putcs(struct vc_data *vc, struct display *p,
{
{
struct
fb_info
*
info
=
p
->
fb_info
;
struct
fb_info
*
info
=
p
->
fb_info
;
unsigned
short
charmask
=
p
->
charmask
;
unsigned
short
charmask
=
p
->
charmask
;
unsigned
int
width
=
((
fontwidth
(
p
)
+
7
)
>>
3
);
unsigned
int
width
=
((
vc
->
vc_font
.
width
+
7
)
>>
3
);
struct
fb_image
image
;
struct
fb_image
image
;
u16
c
=
scr_readw
(
s
);
u16
c
=
scr_readw
(
s
);
image
.
fg_color
=
attr_fgcol
(
p
,
c
);
image
.
fg_color
=
attr_fgcol
(
p
,
c
);
image
.
bg_color
=
attr_bgcol
(
p
,
c
);
image
.
bg_color
=
attr_bgcol
(
p
,
c
);
image
.
dx
=
xx
*
fontwidth
(
p
)
;
image
.
dx
=
xx
*
vc
->
vc_font
.
width
;
image
.
dy
=
yy
*
fontheight
(
p
)
;
image
.
dy
=
yy
*
vc
->
vc_font
.
height
;
image
.
width
=
fontwidth
(
p
)
;
image
.
width
=
vc
->
vc_font
.
width
;
image
.
height
=
fontheight
(
p
)
;
image
.
height
=
vc
->
vc_font
.
height
;
image
.
depth
=
1
;
image
.
depth
=
1
;
while
(
count
--
)
{
while
(
count
--
)
{
image
.
data
=
p
->
fontdata
+
image
.
data
=
p
->
fontdata
+
(
scr_readw
(
s
++
)
&
charmask
)
*
fontheight
(
p
)
*
width
;
(
scr_readw
(
s
++
)
&
charmask
)
*
vc
->
vc_font
.
height
*
width
;
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
image
.
dx
+=
fontwidth
(
p
)
;
image
.
dx
+=
vc
->
vc_font
.
width
;
}
}
}
}
...
@@ -79,8 +80,8 @@ void fbcon_accel_clear_margins(struct vc_data *vc, struct display *p,
...
@@ -79,8 +80,8 @@ void fbcon_accel_clear_margins(struct vc_data *vc, struct display *p,
int
bottom_only
)
int
bottom_only
)
{
{
struct
fb_info
*
info
=
p
->
fb_info
;
struct
fb_info
*
info
=
p
->
fb_info
;
unsigned
int
cw
=
fontwidth
(
p
)
;
unsigned
int
cw
=
vc
->
vc_font
.
width
;
unsigned
int
ch
=
fontheight
(
p
)
;
unsigned
int
ch
=
vc
->
vc_font
.
height
;
unsigned
int
rw
=
info
->
var
.
xres
%
cw
;
unsigned
int
rw
=
info
->
var
.
xres
%
cw
;
unsigned
int
bh
=
info
->
var
.
yres
%
ch
;
unsigned
int
bh
=
info
->
var
.
yres
%
ch
;
unsigned
int
rs
=
info
->
var
.
xres
-
rw
;
unsigned
int
rs
=
info
->
var
.
xres
-
rw
;
...
@@ -118,9 +119,9 @@ void fbcon_accel_cursor(struct display *p, int flags, int xx, int yy)
...
@@ -118,9 +119,9 @@ void fbcon_accel_cursor(struct display *p, int flags, int xx, int yy)
char
*
font
;
char
*
font
;
cursor
.
set
=
FB_CUR_SETPOS
;
cursor
.
set
=
FB_CUR_SETPOS
;
if
(
width
!=
fontwidth
(
p
)
||
height
!=
fontheight
(
p
)
)
{
if
(
width
!=
vc
->
vc_font
.
width
||
height
!=
vc
->
vc_font
.
height
)
{
width
=
fontwidth
(
p
)
;
width
=
vc
->
vc_font
.
width
;
height
=
fontheight
(
p
)
;
height
=
vc
->
vc_font
.
height
;
cursor
.
set
|=
FB_CUR_SETSIZE
;
cursor
.
set
|=
FB_CUR_SETSIZE
;
}
}
...
...
drivers/video/console/fbcon.c
View file @
7aabce2b
This diff is collapsed.
Click to expand it.
drivers/video/console/fbcon.h
View file @
7aabce2b
...
@@ -61,8 +61,6 @@ struct display {
...
@@ -61,8 +61,6 @@ struct display {
unsigned
long
cursor_pos
;
unsigned
long
cursor_pos
;
char
fontname
[
40
];
/* Font associated to this display */
char
fontname
[
40
];
/* Font associated to this display */
u_char
*
fontdata
;
u_char
*
fontdata
;
unsigned
short
_fontheight
;
unsigned
short
_fontwidth
;
int
userfont
;
/* != 0 if fontdata kmalloc()ed */
int
userfont
;
/* != 0 if fontdata kmalloc()ed */
u_short
scrollmode
;
/* Scroll Method */
u_short
scrollmode
;
/* Scroll Method */
short
yscroll
;
/* Hardware scrolling */
short
yscroll
;
/* Hardware scrolling */
...
...
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