PPC软件字体太小的调整

原文地址:http://www.emonk.cn/Archives/2007/11/o2-atom-lifeppc.html

上手O2 Atom Life后少不了刷机以及装软件,但很多软件发现装机后字体太大或是太小,及其不清晰,印象到整体的美观,我是个吹毛求疵的人,当然不能容忍刚买的宝贝手机又这样的瑕疵。经过反复研究终于找到了修改方法。现记录下来,以防遗忘。也分享给其他遇到这类毛病的朋友。

修改之前建议你备份你的注册表!

步骤一:

用注册表编辑软件编辑PPC的注册表

[HKEY_LOCAL_MACHINE/System/GDI]其中的“FontLinkMethods=1”把1修改为0;

[HKEY_LOCAL_MACHINE/System/GDI/V1/FontAlias]里面有个“version = XXXXX”不管数字是多少,把XXXXX预设值修改为589836;

重新启动你的PPC;

步骤二:

用注册表编辑软件打开PPC的注册表如下路径:[HKEY_LOCAL_MACHINE/System/GDI/V1/FontAlias]

新增如图以下字串:



重新启动你的PPC;

重新启动后,你会发现你的PPC的字体和那些原来太大或是太小不清晰的字体全都变清晰了,尤其是SPB 系列的软件和O2 PLUS、O2 SMS PLUS等O2系列的软件。

O2 Atom Life上原本超小而整个挤在一起的Pocker Breeze设定页和O2 PLUS的菜单,立刻变成了正常清晰的字。终于可以让你痛苦已久吹毛求疵的的眼睛变得舒服了。(转载请注明本文来源于Www.Emonk.Cn)
 
int getbit(short sample, unsigned char *outbits, int ch) { int i, bt; float in, in2; float C; float I, Q; float oscl, osch; struct bstat_s *st; bt = 0; st = &bstat[ch]; in = (float) sample; st->lin = 0.003 * fabs(in) + 0.997 * st->lin; in /= st->lin; in2 = in * in; st->is--; if (st->is < 0) st->is = BITLEN - 1; /* VFOs */ st->phih += Freqh - VFOPLL * st->dfh; if (st->phih >= 4.0 * M_PI) st->phih -= 4.0 * M_PI; st->hsample[st->is] = in2 * sin(st->phih); for (i = 0, st->dfh = 0.0; i < BITLEN / 2; i++) { st->dfh += st->hsample[(st->is + i) % BITLEN]; } osch = cos(st->phih / 2.0); st->phil += Freql - VFOPLL * st->dfl; if (st->phil >= 4.0 * M_PI) st->phil -= 4.0 * M_PI; st->lsample[st->is] = in2 * sin(st->phil); for (i = 0, st->dfl = 0.0; i < BITLEN / 2; i++) { st->dfl += st->lsample[(st->is + i) % BITLEN]; } oscl = cos(st->phil / 2.0); /* mix */ st->isample[st->is] = in * (oscl + osch); st->qsample[st->is] = in * (oscl - osch); st->csample[st->is] = oscl * osch; /* bit clock */ st->clock++; if (st->clock >= BITLEN/4 + st->ea) { st->clock = 0; /* clock filter */ for (i = 0, C = 0.0; i < BITLEN; i++) { C += h[i] * st->csample[(st->is + i) % BITLEN]; } if (st->pC < C && st->pC < st->ppC) { /* integrator */ for (i = 0, Q = 0.0; i < BITLEN; i++) { Q += st->qsample[(st->is + i) % BITLEN]; } if (st->sgQ == 0) { if (Q < 0) st->sgQ = -1; else st->sgQ = 1; } *outbits = ((*outbits) >> 1) | (unsigned char) ((Q * st->sgQ > 0) ? 0x80 : 0); bt = 1; st->ea = -BITPLL * (C - st->ppC); if(st->ea > 2.0) st->ea=2.0; if(st->ea < -2.0) st->ea=-2.0; } if (st->pC > C && st->pC > st->ppC) { /* integrator */ for (i = 0, I = 0.0; i < BITLEN; i++) { I += st->isample[(st->is + i) % BITLEN]; } if (st->sgI == 0) { if (I < 0) st->sgI = -1; else st->sgI = 1; } *outbits = ((*outbits) >> 1) | (unsigned char) ((I * st->sgI > 0) ? 0x80 : 0); bt = 1; st->ea = BITPLL * (C - st->ppC); if(st->ea > 2.0) st->ea=2.0; if(st->ea < -2.0) st->ea=-2.0; } st->ppC = st->pC; st->pC = C; } return bt; }用户对于编程语法、数字信号处理和数字通信领域的知识有些遗忘导致不太熟悉,请对上面的信号处理函数进行详细的解释分析
最新发布
08-23
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值