[ros-diffs] [ilardig] 51500: [NOTEPAD] Revert 51497, this is really a hack, sorry.

ilardig at svn.reactos.org ilardig at svn.reactos.org
Sat Apr 30 00:49:12 UTC 2011


Author: ilardig
Date: Sat Apr 30 00:49:10 2011
New Revision: 51500

URL: http://svn.reactos.org/svn/reactos?rev=51500&view=rev
Log:
[NOTEPAD]
Revert 51497, this is really a hack, sorry.

Modified:
    trunk/reactos/base/applications/notepad/settings.c

Modified: trunk/reactos/base/applications/notepad/settings.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/settings.c?rev=51500&r1=51499&r2=51500&view=diff
==============================================================================
--- trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] Sat Apr 30 00:49:10 2011
@@ -182,6 +182,7 @@
 		SaveDword(hKey,     _T("lfCharSet"),        Globals.lfFont.lfCharSet);
 		SaveDword(hKey,     _T("lfClipPrecision"),  Globals.lfFont.lfClipPrecision);
 		SaveDword(hKey,     _T("lfEscapement"),     Globals.lfFont.lfEscapement);
+		SaveString(hKey,    _T("lfFaceName"),       Globals.lfFont.lfFaceName);
 		SaveDword(hKey,     _T("lfItalic"),         Globals.lfFont.lfItalic);
 		SaveDword(hKey,     _T("lfOrientation"),    Globals.lfFont.lfOrientation);
 		SaveDword(hKey,     _T("lfOutPrecision"),   Globals.lfFont.lfOutPrecision);
@@ -189,27 +190,14 @@
 		SaveDword(hKey,     _T("lfQuality"),        Globals.lfFont.lfQuality);
 		SaveDword(hKey,     _T("lfStrikeOut"),      Globals.lfFont.lfStrikeOut);
 		SaveDword(hKey,     _T("lfUnderline"),      Globals.lfFont.lfUnderline);
+		SaveDword(hKey,     _T("lfWeight"),         Globals.lfFont.lfWeight);
+		SaveDword(hKey,     _T("iPointSize"),       PointSizeFromHeight(Globals.lfFont.lfHeight));
 		SaveDword(hKey,     _T("fWrap"),            Globals.bWrapLongLines ? 1 : 0);
 		SaveDword(hKey,     _T("fStatusBar"),       Globals.bShowStatusBar ? 1 : 0);
 		SaveDword(hKey,     _T("iWindowPosX"),      Globals.main_rect.left);
 		SaveDword(hKey,     _T("iWindowPosY"),      Globals.main_rect.top);
 		SaveDword(hKey,     _T("iWindowPosDX"),     Globals.main_rect.right - Globals.main_rect.left);
 		SaveDword(hKey,     _T("iWindowPosDY"),     Globals.main_rect.bottom - Globals.main_rect.top);
-		
-		if (*Globals.lfFont.lfFaceName == '\0')
-		{
-		     static const TCHAR default_font[] = _T("Tahoma");
-		     _tcscpy(Globals.lfFont.lfFaceName, default_font);
-			 Globals.lfFont.lfHeight = 100;
-			 Globals.lfFont.lfWeight = 400;
-			 SaveDword(hKey,     _T("iPointSize"),   Globals.lfFont.lfHeight);
-		}
-		else
-		{
-		     SaveDword(hKey,     _T("iPointSize"),  PointSizeFromHeight(Globals.lfFont.lfHeight));
-		}
-		SaveDword(hKey,     _T("lfWeight"),         Globals.lfFont.lfWeight);
-		SaveString(hKey,    _T("lfFaceName"),       Globals.lfFont.lfFaceName);
 		RegCloseKey(hKey);
 	}
 




More information about the Ros-diffs mailing list