patch-2.1.130 linux/drivers/video/fbcon.c
Next file: linux/drivers/video/fbmem.c
Previous file: linux/drivers/video/fbcon-iplan2p8.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Wed Nov 25 14:53:51 1998
- Orig file:
v2.1.129/linux/drivers/video/fbcon.c
- Orig date:
Fri Oct 23 22:01:22 1998
diff -u --recursive --new-file v2.1.129/linux/drivers/video/fbcon.c linux/drivers/video/fbcon.c
@@ -530,6 +530,9 @@
conp->vc_rows = nr_rows;
}
p->vrows = p->var.yres_virtual/fontheight(p);
+ if ((p->var.yres % fontheight(p)) &&
+ (p->var.yres_virtual % fontheight(p) < p->var.yres % fontheight(p)))
+ p->vrows--;
conp->vc_can_do_color = p->var.bits_per_pixel != 1;
conp->vc_complement_mask = conp->vc_can_do_color ? 0x7700 : 0x0800;
if (charcnt == 256) {
@@ -1211,7 +1214,7 @@
p->var.xres_virtual*p->var.yres_virtual*
p->var.bits_per_pixel>>3);
} else
- p->dispsw->clear(NULL, p, 0, 0, p->conp->vc_rows, p->conp->vc_cols);
+ p->dispsw->clear(conp, p, 0, 0, conp->vc_rows, conp->vc_cols);
return 0;
} else {
/* Tell console.c that it has to restore the screen itself */
@@ -1339,6 +1342,8 @@
/* reset wrap/pan */
p->var.xoffset = p->var.yoffset = p->yscroll = 0;
p->vrows = p->var.yres_virtual/h;
+ if ((p->var.yres % h) && (p->var.yres_virtual % h < p->var.yres % h))
+ p->vrows--;
updatescrollmode(p);
vc_resize_con( p->var.yres/h, p->var.xres/w, unit );
} else if (CON_IS_VISIBLE(p->conp) && vt_cons[unit]->vc_mode == KD_TEXT) {
@@ -1786,8 +1791,15 @@
unsigned char val, mask;
int plane = p->next_plane;
+#if defined(CONFIG_FBCON_IPLAN2P2) || defined(CONFIG_FBCON_IPLAN2P4) || \
+ defined(CONFIG_FBCON_IPLAN2P8)
+ int line_length = p->line_length;
+
/* for support of Atari interleaved planes */
-#define MAP_X(x) (plane > line ? x : (x & ~1)*depth + (x & 1))
+#define MAP_X(x) (line_length ? x : (x & ~1)*depth + (x & 1))
+#else
+#define MAP_X(x) (x)
+#endif
/* extract a bit from the source image */
#define BIT(p,pix,bit) (p[pix*logo_depth/8] & \
(1 << ((8-((pix*logo_depth)&7)-logo_depth) + bit)))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov