7c7,9 < --- > #ifdef MACOSX > Uint32 SFont_GetPixel(SDL_Surface *Surface, Sint32 X, Sint32 Y) > #else 8a11 > #endif 13c16,19 < --- > #ifdef MACOSX > if (X<0) puts("SFONT ERROR: x too small in SFont_GetPixel. Report this to "); > if (X>=Surface->w) puts("SFONT ERROR: x too big in SFont_GetPixel. Report this to "); > #else 15a22 > #endif 56a64,66 > #ifdef MACOSX > if(SFont_GetPixel(Font->Surface,x,0)==SDL_MapRGB(Font->Surface->format,255,0,255)) { > #else 57a68 > #endif 58a70,72 > #ifdef MACOSX > while (( x < Font->Surface->w-1) && (SFont_GetPixel(Font->Surface,x,0)==SDL_MapRGB(Font->Surface->format,255,0,255))) > #else 59a74 > #endif 67a83,85 > #ifdef MACOSX > SDL_SetColorKey(Font->Surface, SDL_SRCCOLORKEY, SFont_GetPixel(Font->Surface, 0, Font->Surface->h-1)); > #else 68a87 > #endif 111a131,133 > #ifdef MACOSX > int SFont_TextWidth2(SFont_FontInfo *Font, char *text) > #else 112a135 > #endif 131a155,160 > #ifdef MACOSX > int SFont_TextWidth(char *text) > { > return SFont_TextWidth2(&InternalFont, text); > } > #else 135a165 > #endif 138a169,171 > #ifdef MACOSX > PutString2(Surface, Font, Surface->w/2-SFont_TextWidth2(Font,text)/2, y, text); > #else 139a173 > #endif 183a218,220 > #ifdef MACOSX > if (SFont_TextWidth2(Font,text)>PixelWidth) text[strlen(text)-1]='\0'; > #else 184a222 > #endif 195a234,238 > #ifdef MACOSX > PutString2(Dest, Font, x+SFont_TextWidth2(Font,text), y, "|"); > SDL_UpdateRects(Dest, 1, &rect); > // SDL_UpdateRect(Dest, x+SFont_TextWidth2(Font,text), y, SFont_TextWidth2(Font,"|"), Font->Surface->h); > #else 198a242 > #endif