Diff for /np2/win9x/fontmng.cpp between versions 1.7 and 1.8

version 1.7, 2006/12/23 12:49:22 version 1.8, 2006/12/23 23:34:32
Line 1 Line 1
 #include        "compiler.h"  #include        "compiler.h"
   #ifndef __GNUC__
   #include        <snanls.h>
   #endif
 #include        "fontmng.h"  #include        "fontmng.h"
   
   
Line 22  typedef struct { Line 25  typedef struct {
   
 static const OEMCHAR deffontface[] = OEMTEXT("£Í£Ó ¥´¥·¥Ã¥¯");  static const OEMCHAR deffontface[] = OEMTEXT("£Í£Ó ¥´¥·¥Ã¥¯");
 static const OEMCHAR deffontface2[] = OEMTEXT("£Í£Ó £Ð¥´¥·¥Ã¥¯");  static const OEMCHAR deffontface2[] = OEMTEXT("£Í£Ó £Ð¥´¥·¥Ã¥¯");
   static const OEMCHAR edeffontface[] = OEMTEXT("MS Gothic");
   static const OEMCHAR edeffontface2[] = OEMTEXT("MS PGothic");
   
   static const OEMCHAR *deffont[4] = {
           deffontface,    deffontface2,
           edeffontface,   edeffontface2};
   
 void *fontmng_create(int size, UINT type, const OEMCHAR *fontface) {  void *fontmng_create(int size, UINT type, const OEMCHAR *fontface) {
   
Line 35  void *fontmng_create(int size, UINT type Line 43  void *fontmng_create(int size, UINT type
         int                     fontwidth;          int                     fontwidth;
         int                     fontheight;          int                     fontheight;
         int                     weight;          int                     weight;
           int                     deffontnum;
         DWORD           pitch;          DWORD           pitch;
         DWORD           charset;          DWORD           charset;
   
Line 104  void *fontmng_create(int size, UINT type Line 113  void *fontmng_create(int size, UINT type
         weight = (type & FDAT_BOLD)?FW_BOLD:FW_REGULAR;          weight = (type & FDAT_BOLD)?FW_BOLD:FW_REGULAR;
         pitch = (type & FDAT_PROPORTIONAL)?VARIABLE_PITCH:FIXED_PITCH;          pitch = (type & FDAT_PROPORTIONAL)?VARIABLE_PITCH:FIXED_PITCH;
         if (fontface == NULL) {          if (fontface == NULL) {
                 fontface = (type & FDAT_PROPORTIONAL)?deffontface2:deffontface;                  deffontnum = (type & FDAT_PROPORTIONAL)?1:0;
   #ifndef __GNUC__
                   if (GetOEMCP() != CP_932)
   #else
                   if (GetOEMCP() != 932)
   #endif
                   {
                           deffontnum += 2;
                   }
                   fontface = deffont[deffontnum];
         }          }
         charset = (type & FDAT_SHIFTJIS)?SHIFTJIS_CHARSET:DEFAULT_CHARSET;          charset = (type & FDAT_SHIFTJIS)?SHIFTJIS_CHARSET:DEFAULT_CHARSET;
         ret->hfont = CreateFont(size, 0,          ret->hfont = CreateFont(size, 0,

Removed from v.1.7  
changed lines
  Added in v.1.8


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