IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29352


Ignore:
Timestamp:
Oct 7, 2010, 8:28:31 PM (16 years ago)
Author:
eugene
Message:

add an automatic Init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/Ohana/src/libkapa/src/RotFont.c

    r5854 r29352  
    1010static RotFont *currentfont;
    1111
     12static int RotFontInited = FALSE;
     13
    1214void InitRotFonts () {
    1315
    1416  int i, Nhardwired;
     17
     18  if (RotFontInited) return;
     19  RotFontInited = TRUE;
    1520
    1621  Nhardwired = sizeof (HardwiredFonts) / sizeof (FontSet);
     
    3237 
    3338  int i, nsize, msize, bsize, bigger, dsize, match, good;
     39
     40  InitRotFonts();
    3441
    3542  bigger = good = match = -1;
     
    6976char *GetRotFont (int *size) {
    7077
     78  InitRotFonts();
     79
    7180  *size = currentsize;
    7281  return (currentname);
     
    7584
    7685RotFont *GetRotFontData (double *scale) {
     86
     87  InitRotFonts();
     88
    7789  *scale = currentscale;
    7890  return (currentfont);
     
    8496  double scale;
    8597 
     98  InitRotFonts();
     99
    86100  scale = currentscale;
    87101
Note: See TracChangeset for help on using the changeset viewer.