projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regenerated all makefiles with bakefile 0.2.0; removed REZ option from config.bkl...
[wxWidgets.git]
/
src
/
msw
/
fontutil.cpp
diff --git
a/src/msw/fontutil.cpp
b/src/msw/fontutil.cpp
index 41d7adc1c26b3997dd505653da929388ed36f1d4..a1b318d725b52882ef44d5909ae4aa4555bd6bb5 100644
(file)
--- a/
src/msw/fontutil.cpp
+++ b/
src/msw/fontutil.cpp
@@
-17,10
+17,6
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "fontutil.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-141,7
+137,7
@@
wxString wxNativeEncodingInfo::ToString() const
bool wxGetNativeFontEncoding(wxFontEncoding encoding,
wxNativeEncodingInfo *info)
{
bool wxGetNativeFontEncoding(wxFontEncoding encoding,
wxNativeEncodingInfo *info)
{
- wxCHECK_MSG( info,
NULL
, _T("bad pointer in wxGetNativeFontEncoding") );
+ wxCHECK_MSG( info,
false
, _T("bad pointer in wxGetNativeFontEncoding") );
if ( encoding == wxFONTENCODING_DEFAULT )
{
if ( encoding == wxFONTENCODING_DEFAULT )
{
@@
-164,7
+160,7
@@
bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
LOGFONT lf;
wxZeroMemory(lf); // all default values
LOGFONT lf;
wxZeroMemory(lf); // all default values
- lf.lfCharSet = info.charset;
+ lf.lfCharSet =
(BYTE)
info.charset;
wxStrncpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName));
HFONT hfont = ::CreateFontIndirect(&lf);
wxStrncpy(lf.lfFaceName, info.facename, WXSIZEOF(lf.lfFaceName));
HFONT hfont = ::CreateFontIndirect(&lf);
@@
-236,7
+232,7
@@
wxFontEncoding wxGetFontEncFromCharSet(int cs)
break;
case THAI_CHARSET:
break;
case THAI_CHARSET:
- fontEncoding = wxFONTENCODING_CP
437
;
+ fontEncoding = wxFONTENCODING_CP
874
;
break;
case SHIFTJIS_CHARSET:
break;
case SHIFTJIS_CHARSET: