Diff for /xmil/win9x/fontmng.cpp between versions 1.3 and 1.5

version 1.3, 2004/08/18 15:42:33 version 1.5, 2005/02/13 22:27:53
Line 35  void *fontmng_create(int size, UINT type Line 35  void *fontmng_create(int size, UINT type
         int                     fontwidth;          int                     fontwidth;
         int                     fontheight;          int                     fontheight;
         int                     weight;          int                     weight;
         DWORD           pitch;          UINT            pitch;
   
         if (size < 0) {          if (size < 0) {
                 size *= -1;                  size *= -1;
Line 210  BRESULT fontmng_getdrawsize(void *hdl, c Line 210  BRESULT fontmng_getdrawsize(void *hdl, c
   
         width = 0;          width = 0;
         posx = 0;          posx = 0;
         buf[2] = '\0';  
         while(1) {          while(1) {
                 leng = milstr_charsize(string);                  leng = milstr_charsize(string);
                 if (!leng) {                  if (!leng) {
Line 222  BRESULT fontmng_getdrawsize(void *hdl, c Line 221  BRESULT fontmng_getdrawsize(void *hdl, c
                 getlength1((FNTMNG)hdl, &fdat, buf, leng);                  getlength1((FNTMNG)hdl, &fdat, buf, leng);
                 width = posx + max(fdat.width, fdat.pitch);                  width = posx + max(fdat.width, fdat.pitch);
                 posx += fdat.pitch;                  posx += fdat.pitch;
         } while(1);          }
   
         if (pt) {          if (pt) {
                 pt->x = width;                  pt->x = width;

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


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