Author: gedmurphy
Date: Mon Apr 17 17:35:40 2006
New Revision: 21635
URL:
http://svn.reactos.ru/svn/reactos?rev=21635&view=rev
Log:
Bit of fun. Add a built-in coded message for the first time the screensaver is run.
If removed, it will not reappear.
Modified:
trunk/reactos/base/applications/screensavers/matrix/config.c
trunk/reactos/base/applications/screensavers/matrix/settings.c
Modified: trunk/reactos/base/applications/screensavers/matrix/config.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/screensav…
==============================================================================
--- trunk/reactos/base/applications/screensavers/matrix/config.c (original)
+++ trunk/reactos/base/applications/screensavers/matrix/config.c Mon Apr 17 17:35:40 2006
@@ -68,7 +68,7 @@
prevheight = GetSystemMetrics(SM_CYSCREEN) / GLYPH_HEIGHT + 1;
//Add any saved messages to the combo box
- for(index = 0; index < g_nNumMessages; index++)
+ for(index = 0; index <= g_nNumMessages; index++)
{
if(lstrlen(g_szMessages[index]) > 0)
SendDlgItemMessage(hwnd, IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)g_szMessages[index]);
Modified: trunk/reactos/base/applications/screensavers/matrix/settings.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/screensav…
==============================================================================
--- trunk/reactos/base/applications/screensavers/matrix/settings.c (original)
+++ trunk/reactos/base/applications/screensavers/matrix/settings.c Mon Apr 17 17:35:40
2006
@@ -93,6 +93,11 @@
}
}
}
+ else
+ {
+ /* built-in coded message for first run */
+ lstrcpyn(g_szMessages[0], "ReactOS", MAXMSG_LENGTH);
+ }
RegCloseKey(hkey);
free(hugechar);