diff --git a/mozilla/widget/src/os2/nsDirPicker.cpp b/mozilla/widget/src/os2/nsDirPicker.cpp index b314cdac09c..5b33527867d 100644 --- a/mozilla/widget/src/os2/nsDirPicker.cpp +++ b/mozilla/widget/src/os2/nsDirPicker.cpp @@ -273,8 +273,6 @@ MRESULT EXPENTRY fndpDirPicker( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) // prep window CenterWindow( hwnd, WinQueryWindow( hwnd, QW_OWNER)); - // XXX make dynamic, save fontnamesize - WinSetPresParam( hwnd, PP_FONTNAMESIZE, 11, (PVOID)"9.WarpSans"); // XXX colour for container bg? // XXX Do help later WinEnableControl( hwnd, IDD_HELPBUTTON, FALSE); diff --git a/mozilla/widget/src/os2/nsModule.cpp b/mozilla/widget/src/os2/nsModule.cpp index d69cf937015..988a3b9ac8f 100644 --- a/mozilla/widget/src/os2/nsModule.cpp +++ b/mozilla/widget/src/os2/nsModule.cpp @@ -83,10 +83,6 @@ void nsWidgetModuleData::Init( nsIAppShell *aPrimaevalAppShell) // Both combobox and (atm) nsBrowserWindow depend on this. lHtEntryfield = 26; - rc = WinLoadString( 0/*hab*/, hModResources, ID_STR_FONT, 256, buffer); - if( !rc) strcpy( buffer, "8.Helv"); - pszFontNameSize = strdup( buffer); - hptrSelect = hptrFrameIcon = 0; idSelect = 0; @@ -133,7 +129,6 @@ nsWidgetModuleData::~nsWidgetModuleData() WinDestroyPointer( hptrFrameIcon); if( hModResources) DosFreeModule( hModResources); - free( pszFontNameSize); #if 0 delete mWindows; #endif diff --git a/mozilla/widget/src/os2/nsWidgetDefs.h b/mozilla/widget/src/os2/nsWidgetDefs.h index a20a55ae695..1e89ab3db3d 100644 --- a/mozilla/widget/src/os2/nsWidgetDefs.h +++ b/mozilla/widget/src/os2/nsWidgetDefs.h @@ -131,7 +131,6 @@ class nsWidgetModuleData SIZEL szScreen; // size of screen in pixels BOOL bMouseSwitched; // true if MB1 is the RH mouse button LONG lHtEntryfield; // ideal height of an entryfield - char *pszFontNameSize; // fns for default widget font BOOL bIsDBCS; // true if system is dbcs // xptoolkit services we look after, & the primaeval appshell too. diff --git a/mozilla/widget/src/os2/nsWindow.cpp b/mozilla/widget/src/os2/nsWindow.cpp index 3bde72adb22..d700f00ee30 100644 --- a/mozilla/widget/src/os2/nsWindow.cpp +++ b/mozilla/widget/src/os2/nsWindow.cpp @@ -859,9 +859,6 @@ void nsWindow::RealDoCreate( HWND hwndP, printf( "Couldn't find DC instance for nsWindow\n"); #endif } - WinSetPresParam( mWnd, PP_FONTNAMESIZE, - strlen( gModuleData.pszFontNameSize) + 1, - gModuleData.pszFontNameSize); Resize( aRect.x, aRect.y, aRect.width, aRect.height, PR_FALSE); diff --git a/mozilla/widget/src/os2/res/wdgtres.rc b/mozilla/widget/src/os2/res/wdgtres.rc index 6f221847284..0401ac0f092 100644 --- a/mozilla/widget/src/os2/res/wdgtres.rc +++ b/mozilla/widget/src/os2/res/wdgtres.rc @@ -65,7 +65,6 @@ POINTER ID_PTR_ARROWWAIT arrow_wait.ptr /* stringtable */ STRINGTABLE BEGIN - ID_STR_FONT "8.Helv" ID_STR_HMMDIR "Cannot locate directory %s. Would you like it to be created?" ID_STR_NOCDIR "Could not create directory." END