Diff for /np2/win9x/fontmng.cpp between versions 1.1 and 1.2

version 1.1, 2003/10/16 17:58:46 version 1.2, 2005/02/07 14:46:14
Line 11  typedef struct { Line 11  typedef struct {
 // あとは拡張〜  // あとは拡張〜
         HDC                     hdcimage;          HDC                     hdcimage;
         HBITMAP         hBitmap;          HBITMAP         hBitmap;
         BYTE            *image;          UINT8           *image;
         HFONT           hfont;          HFONT           hfont;
         RECT            rect;          RECT            rect;
         int                     bmpwidth;          int                     bmpwidth;
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 73  void *fontmng_create(int size, UINT type Line 73  void *fontmng_create(int size, UINT type
         ret->bmpalign = (((ret->bmpwidth + 31) / 8) & ~3);          ret->bmpalign = (((ret->bmpwidth + 31) / 8) & ~3);
   
   
         bi = (BITMAPINFO *)(((BYTE *)(ret + 1)) + fontalign);          bi = (BITMAPINFO *)(((UINT8 *)(ret + 1)) + fontalign);
         bi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);          bi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
         bi->bmiHeader.biWidth = ret->bmpwidth;          bi->bmiHeader.biWidth = ret->bmpwidth;
         bi->bmiHeader.biHeight = ret->bmpheight;          bi->bmiHeader.biHeight = ret->bmpheight;
Line 260  static void fontmng_getchar(FNTMNG fhdl, Line 260  static void fontmng_getchar(FNTMNG fhdl,
   
 static void fontmng_setpat(FNTMNG fhdl, FNTDAT fdat) {  static void fontmng_setpat(FNTMNG fhdl, FNTDAT fdat) {
   
         DWORD   remx;          UINT    remx;
         DWORD   remy;          UINT    remy;
         BYTE    *src;          UINT8   *src;
         BYTE    *dst;          UINT8   *dst;
         BYTE    *s;          UINT8   *s;
         BYTE    bit;          UINT8   bit;
         BYTE    b1 = 0;                         // for cygwin          UINT8   b1 = 0;                         // for cygwin
         int             align;          int             align;
   
         align = fhdl->bmpalign;          align = fhdl->bmpalign;
Line 275  static void fontmng_setpat(FNTMNG fhdl,  Line 275  static void fontmng_setpat(FNTMNG fhdl, 
                 goto fmsp_end;                  goto fmsp_end;
         }          }
   
         dst = (BYTE *)(fdat + 1);          dst = (UINT8 *)(fdat + 1);
         align *= -1;          align *= -1;
   
         remy = fdat->height;          remy = fdat->height;

Removed from v.1.1  
changed lines
  Added in v.1.2


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