Diff for /np2/wince/fontmng.cpp between versions 1.5 and 1.6

version 1.5, 2004/06/14 13:35:40 version 1.6, 2005/02/09 20:11:37
Line 6 Line 6
   
 #if defined(FONTMNG_CACHE)  #if defined(FONTMNG_CACHE)
 typedef struct {  typedef struct {
         WORD            str;          UINT16          str;
         WORD            next;          UINT16          next;
 } FNTCTBL;  } FNTCTBL;
 #endif  #endif
   
Line 29  typedef struct { Line 29  typedef struct {
         int                     bmpalign;          int                     bmpalign;
   
 #if defined(FONTMNG_CACHE)  #if defined(FONTMNG_CACHE)
         DWORD           caches;          UINT            caches;
         DWORD           cachehead;          UINT            cachehead;
         FNTCTBL         cache[FONTMNG_CACHE];          FNTCTBL         cache[FONTMNG_CACHE];
 #endif  #endif
 } _FNTMNG, *FNTMNG;  } _FNTMNG, *FNTMNG;
Line 619  FNTDAT fontmng_get(void *hdl, const char Line 619  FNTDAT fontmng_get(void *hdl, const char
                 }                  }
                 if (prev < FONTMNG_CACHE) {                  if (prev < FONTMNG_CACHE) {
                         fct[prev].next = fct[pos].next;                          fct[prev].next = fct[pos].next;
                         fct[pos].next = (WORD)fhdl->cachehead;                          fct[pos].next = (UINT16)fhdl->cachehead;
                         fhdl->cachehead = pos;                          fhdl->cachehead = pos;
                 }                  }
                 return((FNTDAT)(((BYTE *)(fhdl + 1)) + (pos * fhdl->fontalign)));                  return((FNTDAT)(((BYTE *)(fhdl + 1)) + (pos * fhdl->fontalign)));
Line 628  FNTDAT fontmng_get(void *hdl, const char Line 628  FNTDAT fontmng_get(void *hdl, const char
                 prev = fhdl->caches;                  prev = fhdl->caches;
                 fhdl->caches++;                  fhdl->caches++;
         }          }
         fct[prev].str = (WORD)str;          fct[prev].str = (UINT16)str;
         fct[prev].next = (WORD)fhdl->cachehead;          fct[prev].next = (UINT16)fhdl->cachehead;
         fhdl->cachehead = prev;          fhdl->cachehead = prev;
         fdat = (FNTDAT)(((BYTE *)(fhdl + 1)) + (prev * fhdl->fontalign));          fdat = (FNTDAT)(((BYTE *)(fhdl + 1)) + (prev * fhdl->fontalign));
 }  }

Removed from v.1.5  
changed lines
  Added in v.1.6


RetroPC.NET-CVS <cvs@retropc.net>