|
楼主 |
发表于 2006-1-6 17:51:39
|
显示全部楼层
Post by bbbush
那意思是 fedora-gro cvs 里面的补丁也是错的?:ask
凑乎用了那么久
嗯,后来我改成这样:
- diff -aur zhcon-0.2.3/src/display/fblinear24.cpp zhcon-0.2.3-patched/src/display/fblinear24.cpp
- --- zhcon-0.2.3/src/display/fblinear24.cpp 2002-05-12 11:58:28.000000000 +0800
- +++ zhcon-0.2.3-patched/src/display/fblinear24.cpp 2005-10-23 04:33:20.000000000 +0800
- @@ -203,11 +203,13 @@
- d1 = (-(*cdat >> 3 & 1) & eorx) ^ bgx;
- d2 = (-(*cdat >> 2 & 1) & eorx) ^ bgx;
- fb_writel(d1 | (d2<<24), dest32++);
- - fb_writew(d2>>8, ((__u16*)dest32)++);
- + fb_writew(d2>>8, (__u16*)dest32);
- + dest32++;
- }
- if (pFont->w & 1) {
- d3 = (-(*cdat >> 1 & 1) & eorx) ^ bgx;
- - fb_writew(d3, ((__u16*)dest32)++);
- + fb_writew(d3, (__u16*)dest32);
- + dest32++;
- fb_writeb(d3>>16, (__u8*)dest32);
- }
- cdat++;
复制代码
这样应该就好了。新的gcc的语法检查真是严。
如果大家在使用上还有问题,请多回复!:thank |
|