Subject: Re: solution for garbage characters problem...
To: Markus Kurek <kurek@etecs5.uni-duisburg.de>
From: Matthias Drochner <drochner@zel459.zel.kfa-juelich.de>
List: port-i386
Date: 08/16/1999 12:44:49
kurek@etecs5.uni-duisburg.de said:
> I get garbage if I configure wscons to 80x50. 

The following patch should fix it. The font data could be saved by
the console driver as well, and perhaps should as a compatibility
option (pcvt does it).
As I wrote in a previous mail, from the technical POV I'd
prefer to let the X server save and restore the whole card state.

best regards
Matthias


Index: xc/programs/Xserver/hw/xfree86/vga256/vga/vgaHW.c
===================================================================
RCS file: /cvsroot/xsrc/xc/programs/Xserver/hw/xfree86/vga256/vga/vgaHW.c,v
retrieving revision 1.1.1.5
diff -c -2 -r1.1.1.5 vgaHW.c
*** vgaHW.c	1999/01/19 22:22:38	1.1.1.5
--- vgaHW.c	1999/08/16 10:12:25
***************
*** 94,98 ****
  
  /* bytes per plane to save for text */
! #if defined(Lynx) || defined(linux) || defined(MINIX)
  #define TEXT_AMOUNT 16384
  #else
--- 94,98 ----
  
  /* bytes per plane to save for text */
! #if defined(Lynx) || defined(linux) || defined(MINIX) || defined(__NetBSD__)
  #define TEXT_AMOUNT 16384
  #else
***************
*** 101,105 ****
--- 101,109 ----
  
  /* bytes per plane to save for font data */
+ #if defined(__NetBSD__)
+ #define FONT_AMOUNT (8*8192) /* all font slots */
+ #else
  #define FONT_AMOUNT 8192
+ #endif
  #endif /* !defined(PC98_NEC480) && !defined(PC98_EGC) && !defined(PC98_MGA) 
*/