Improve pfDrawFonts
This commit is contained in:
parent
5dae0e2ce6
commit
0db78aff4a
2 changed files with 7 additions and 5 deletions
|
|
@ -175,6 +175,7 @@ cflags_rel = [
|
||||||
"-O0,s",
|
"-O0,s",
|
||||||
"-enum int",
|
"-enum int",
|
||||||
"-char unsigned",
|
"-char unsigned",
|
||||||
|
"-fp_contract off",
|
||||||
"-sdata 0",
|
"-sdata 0",
|
||||||
"-sdata2 0",
|
"-sdata2 0",
|
||||||
"-pool off",
|
"-pool off",
|
||||||
|
|
@ -186,6 +187,7 @@ cflags_game = [
|
||||||
"-O0,p",
|
"-O0,p",
|
||||||
"-enum int",
|
"-enum int",
|
||||||
"-char unsigned",
|
"-char unsigned",
|
||||||
|
"-fp_contract off",
|
||||||
]
|
]
|
||||||
|
|
||||||
config.linker_version = "GC/2.6"
|
config.linker_version = "GC/2.6"
|
||||||
|
|
|
||||||
|
|
@ -222,8 +222,8 @@ void pfDrawFonts(void)
|
||||||
case 255:
|
case 255:
|
||||||
c = *str++;
|
c = *str++;
|
||||||
scale = c/16.0f;
|
scale = c/16.0f;
|
||||||
char_w = scale*8.0f*strline[i].scale;
|
char_w = 8.0f*strline[i].scale*scale;
|
||||||
char_h = scale*8.0f*strline[i].scale;
|
char_h = 8.0f*strline[i].scale*scale;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 254:
|
case 254:
|
||||||
|
|
@ -232,8 +232,8 @@ void pfDrawFonts(void)
|
||||||
|
|
||||||
case 253:
|
case 253:
|
||||||
shadow_color = (*str++)-1;
|
shadow_color = (*str++)-1;
|
||||||
shadow_ofs_x = scale*1.33333333f*strline[i].scale;
|
shadow_ofs_x = 1.33333333f*strline[i].scale*scale;
|
||||||
shadow_ofs_y = scale*1.33333333f*strline[i].scale;
|
shadow_ofs_y = 1.33333333f*strline[i].scale*scale;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
@ -254,7 +254,7 @@ void pfDrawFonts(void)
|
||||||
GXColor1x8(color);
|
GXColor1x8(color);
|
||||||
GXTexCoord2f32(texcoord_x, texcoord_y+(1/16.0f));
|
GXTexCoord2f32(texcoord_x, texcoord_y+(1/16.0f));
|
||||||
} else {
|
} else {
|
||||||
GXBegin(GX_QUADS, GX_VTXFMT0, 4);
|
GXBegin(GX_QUADS, GX_VTXFMT0, 8);
|
||||||
GXPosition3s16(x+shadow_ofs_x, y+shadow_ofs_y, 0);
|
GXPosition3s16(x+shadow_ofs_x, y+shadow_ofs_y, 0);
|
||||||
GXColor1x8(shadow_color);
|
GXColor1x8(shadow_color);
|
||||||
GXTexCoord2f32(texcoord_x, texcoord_y);
|
GXTexCoord2f32(texcoord_x, texcoord_y);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue