Changeset 39339
- Timestamp:
- Feb 10, 2016, 10:30:45 AM (10 years ago)
- Location:
- trunk/Ohana/src/libkapa
- Files:
-
- 2 edited
-
rotfont/alphabet.h (modified) (1 diff)
-
src/RotFont.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libkapa/rotfont/alphabet.h
r5854 r39339 61 61 }; 62 62 63 int Nallfonts;64 FontSet *AllFonts;65 RotFont *activefont;66 double activescale;67 68 char currentname[64];69 int currentsize;63 // int Nallfonts; 64 // FontSet *AllFonts; 65 // RotFont *activefont; 66 // double activescale; 67 // 68 // char currentname[64]; 69 // int currentsize; -
trunk/Ohana/src/libkapa/src/RotFont.c
r29537 r39339 30 30 currentfont = RotFonts[DEFFONT].font; 31 31 currentscale = 1.0; 32 str cpy (currentname, RotFonts[DEFFONT].name);32 strncpy (currentname, RotFonts[DEFFONT].name, 63); currentname[63] = 0; 33 33 currentsize = RotFonts[DEFFONT].size; 34 34 } … … 65 65 currentscale = (double) size / RotFonts[match].size; 66 66 currentsize = size; 67 strcpy (currentname, name); 67 if (name != currentname) { 68 strncpy (currentname, name, 63); currentname[63] = 0; 69 } 68 70 return (TRUE); 69 71 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
