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

version 1.4, 2005/02/04 06:42:12 version 1.5, 2005/02/13 22:27:53
Line 20  typedef struct { Line 20  typedef struct {
 } _FNTMNG, *FNTMNG;  } _FNTMNG, *FNTMNG;
   
   
 // static const OEMCHAR deffontface[] = OEMTEXT("£Í£Ó ¥´¥·¥Ã¥¯");  static const OEMCHAR deffontface[] = OEMTEXT("£Í£Ó ¥´¥·¥Ã¥¯");
 static const OEMCHAR deffontface[] = OEMTEXT("£Ä£Æ ºÙ´Ý¥´¥·¥Ã¥¯ÂÎ");  
 static const OEMCHAR deffontface2[] = OEMTEXT("£Í£Ó £Ð¥´¥·¥Ã¥¯");  static const OEMCHAR deffontface2[] = OEMTEXT("£Í£Ó £Ð¥´¥·¥Ã¥¯");
   
   
Line 36  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 211  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 223  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.4  
changed lines
  Added in v.1.5


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