projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vgabios: Use vgamode_s instead of video_param_table in code.
[seabios.git]
/
vgasrc
/
vgafb.c
diff --git
a/vgasrc/vgafb.c
b/vgasrc/vgafb.c
index 866f7f8e11c50d460cacfb0498b0476268ece803..1e1943dc2b6cb126b885a29c33d0f2ff1dbd5969 100644
(file)
--- a/
vgasrc/vgafb.c
+++ b/
vgasrc/vgafb.c
@@
-40,8
+40,7
@@
static void
scroll_pl4(struct vgamode_s *vmode_g, int nblines, int attr
, struct cursorpos ul, struct cursorpos lr)
{
scroll_pl4(struct vgamode_s *vmode_g, int nblines, int attr
, struct cursorpos ul, struct cursorpos lr)
{
- struct VideoParam_s *vparam_g = GET_GLOBAL(vmode_g->vparam);
- u8 cheight = GET_GLOBAL(vparam_g->cheight);
+ u8 cheight = GET_GLOBAL(vmode_g->cheight);
int stride = GET_BDA(video_cols);
void *src_far, *dest_far;
if (nblines >= 0) {
int stride = GET_BDA(video_cols);
void *src_far, *dest_far;
if (nblines >= 0) {
@@
-72,8
+71,7
@@
static void
scroll_cga(struct vgamode_s *vmode_g, int nblines, int attr
, struct cursorpos ul, struct cursorpos lr)
{
scroll_cga(struct vgamode_s *vmode_g, int nblines, int attr
, struct cursorpos ul, struct cursorpos lr)
{
- struct VideoParam_s *vparam_g = GET_GLOBAL(vmode_g->vparam);
- u8 cheight = GET_GLOBAL(vparam_g->cheight);
+ u8 cheight = GET_GLOBAL(vmode_g->cheight);
u8 bpp = GET_GLOBAL(vmode_g->pixbits);
int stride = GET_BDA(video_cols) * bpp;
void *src_far, *dest_far;
u8 bpp = GET_GLOBAL(vmode_g->pixbits);
int stride = GET_BDA(video_cols) * bpp;
void *src_far, *dest_far;
@@
-190,8
+188,7
@@
write_gfx_char_pl4(struct vgamode_s *vmode_g
if (cp.x >= nbcols)
return;
if (cp.x >= nbcols)
return;
- struct VideoParam_s *vparam_g = GET_GLOBAL(vmode_g->vparam);
- u8 cheight = GET_GLOBAL(vparam_g->cheight);
+ u8 cheight = GET_GLOBAL(vmode_g->cheight);
u8 *fdata_g;
switch (cheight) {
case 14:
u8 *fdata_g;
switch (cheight) {
case 14: