summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2000-11-02 13:25:41 +0000
committerMalte Timmermann <mt@openoffice.org>2000-11-02 13:25:41 +0000
commitff06d6352a37dc99dcae9d2fd0c4b83eb98727b2 (patch)
tree4b64df8fb96ced0a6f64fffada63f74e697f40cc /vcl/win
parenta5d3681fc08b0f841354ea9b7d0ee3c23b73bdc8 (diff)
GetTextFaceW: sizeof( wchar_t )
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/gdi/salgdi3.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index aa6b4c347090..dce9e510c54e 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salgdi3.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 17:05:49 $
+ * last change: $Author: mt $ $Date: 2000-11-02 14:25:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -675,7 +675,7 @@ void SalGraphics::GetFontMetric( ImplFontMetricData* pMetric )
if ( aSalShlData.mbWNT )
{
wchar_t aFaceName[LF_FACESIZE+60];
- GetTextFaceW( maGraphicsData.mhDC, sizeof( aFaceName ), aFaceName );
+ GetTextFaceW( maGraphicsData.mhDC, sizeof( aFaceName ) / sizeof( wchar_t ), aFaceName );
pMetric->maName = aFaceName;
TEXTMETRICW aWinMetric;
@@ -768,7 +768,7 @@ static void ImplGetAllFontCharSets( SalGraphicsData* pData )
LOGFONTA aLogFont;
memset( &aLogFont, 0, sizeof( aLogFont ) );
aLogFont.lfCharSet = DEFAULT_CHARSET;
- GetTextFace( pData->mhDC, sizeof( aLogFont.lfFaceName ), aLogFont.lfFaceName );
+ GetTextFaceA( pData->mhDC, sizeof( aLogFont.lfFaceName ), aLogFont.lfFaceName );
EnumFontFamiliesExA( pData->mhDC, &aLogFont, (FONTENUMPROCA)SalEnumCharSetsProcExA,
(LPARAM)(void*)pData, 0 );
}