summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/font_load.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c
index 184349000f..cbe44a5b77 100644
--- a/libvo/font_load.c
+++ b/libvo/font_load.c
@@ -210,21 +210,22 @@ for(i=0;i<=fontdb;i++){
int x=desc->pic_a[i]->bmp[j];
int y=desc->pic_b[i]->bmp[j];
- x=((x*f)>>8); // scale
- if(x<0) x=0; else if(x>255) x=255;
- x^=255; // invert
-
+ x=255-((x*f)>>8); // scale
+ //if(x<0) x=0; else if(x>255) x=255;
+ //x^=255; // invert
+
if(x+y>255) x=255-y; // to avoid overflows
//x=0;
//x=((x*f*(255-y))>>16);
//x=((x*f*(255-y))>>16)+y;
//x=(x*f)>>8;if(x<y) x=y;
-
+
if(x<1) x=1; else
if(x>=252) x=0;
-
+
desc->pic_a[i]->bmp[j]=x;
+// desc->pic_b[i]->bmp[j]=0; // hack
}
printf("DONE!\n");
}