final step , rename the scrnsave.scr to blankscr.scr to avoid conflicts with scrnsave.lib

caution: manually deleting makefile.auto may be required!
note: It works fine in windows it highlights a but in reactos

svn path=/trunk/; revision=30793
This commit is contained in:
Marc Piulachs 2007-11-26 21:47:35 +00:00
parent 1c8ecf1d2a
commit fdb78c697c
14 changed files with 30 additions and 30 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../../tools/rbuild/project.dtd">
<module name="blankscr" type="win32scr" installbase="system32" installname="scrnsave.scr">
<module name="blankscr" type="win32scr" installbase="system32" installname="blankscr.scr">
<importlibrary definition="scrnsave.def" />
<library>scrnsave</library>
<library>kernel32</library>
@ -9,7 +9,7 @@
<library>opengl32</library>
<library>glu32</library>
<library>advapi32</library>
<library>shell32</library>
<library>shell32</library>
<file>scrnsave.c</file>
<file>scrnsave.rc</file>

View file

@ -17,39 +17,39 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#include <windows.h>
#include <scrnsave.h>
#include <windows.h>
#include <scrnsave.h>
#include "resource.h"
LRESULT WINAPI ScreenSaverProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI ScreenSaverProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static HDC hdc;
static HDC hdc;
static RECT rc;
switch(message)
{
case WM_CREATE:
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
case WM_ERASEBKGND:
hdc = GetDC(hwnd);
GetClientRect (hwnd, &rc);
FillRect (hdc, &rc, GetStockObject(BLACK_BRUSH));
ReleaseDC(hwnd,hdc);
break;
case WM_PAINT:
break;
default:
return DefScreenSaverProc(hwnd, message, wParam, lParam);
}
return 0;
switch(message)
{
case WM_CREATE:
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
case WM_ERASEBKGND:
hdc = GetDC(hwnd);
GetClientRect (hwnd, &rc);
FillRect (hdc, &rc, GetStockObject(BLACK_BRUSH));
ReleaseDC(hwnd,hdc);
break;
case WM_PAINT:
break;
default:
return DefScreenSaverProc(hwnd, message, wParam, lParam);
}
return 0;
}
BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
return FALSE;
BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
return FALSE;
}
BOOL WINAPI RegisterDialogClasses(HANDLE hInst)

View file

@ -7,8 +7,8 @@
<directory name="matrix">
<xi:include href="matrix/matrix.rbuild" />
</directory>
<directory name="scrnsave">
<xi:include href="scrnsave/scrnsave.rbuild" />
<directory name="blankscr">
<xi:include href="blankscr/blankscr.rbuild" />
</directory>
<directory name="starfield">
<xi:include href="starfield/starfield.rbuild" />