/[linux-patches]/genpatches-2.6/tags/2.6.15-2/4901_speakup-highlight-tracking-amd64.patch
Gentoo

Contents of /genpatches-2.6/tags/2.6.15-2/4901_speakup-highlight-tracking-amd64.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 259 - (show annotations) (download)
Wed Jan 11 21:46:01 2006 UTC (8 years, 8 months ago) by dsd
File size: 860 byte(s)
2.6.15-2 release
1 --- linux-orig/drivers/char/speakup/speakup.c 2005-12-15 16:26:21.000000000 +0000
2 +++ linux/drivers/char/speakup/speakup.c 2006-01-02 23:27:15.000000000 +0000
3 @@ -2148,19 +2155,20 @@ reset_highlight_buffers( struct vc_data
4 static int
5 count_highlight_color(struct vc_data *vc)
6 {
7 - int i,j,bg,ch;
8 + int i,bg;
9 int cc;
10 int vc_num=vc->vc_num;
11 - unsigned int start,end;
12 + u16 ch;
13 + u16 *start = (u16 *) vc->vc_origin;
14
15 for ( i=0 ; i<8 ; i++ )
16 speakup_console[vc_num]->ht.bgcount[i]=0;
17
18 - start=vc->vc_origin;
19 for ( i=0 ; i<vc->vc_rows; i++ ){
20 - end = start + vc->vc_cols*2;
21 - for ( j=start ; j<end ; j+=2){
22 - ch = scr_readw( (ushort *) j );
23 + u16 *end = start + vc->vc_cols*2;
24 + u16 *ptr;
25 + for ( ptr=start ; ptr<end ; ptr++){
26 + ch = scr_readw( ptr );
27 bg = ( ch & 0x7000 ) >> 12;
28 speakup_console[vc_num]->ht.bgcount[bg]++;
29 }
30

  ViewVC Help
Powered by ViewVC 1.1.20