Commit c7de3401 authored by Andriy Palamarchuk's avatar Andriy Palamarchuk Committed by Alexandre Julliard

Removed Get/SetScreenSaveTimeout user driver functions because they

are not used.
parent caf81dc0
...@@ -55,8 +55,6 @@ debug_channels (ttydrv) ...@@ -55,8 +55,6 @@ debug_channels (ttydrv)
@ cdecl SetCursor(ptr) TTYDRV_SetCursor @ cdecl SetCursor(ptr) TTYDRV_SetCursor
@ cdecl GetScreenSaveActive() TTYDRV_GetScreenSaveActive @ cdecl GetScreenSaveActive() TTYDRV_GetScreenSaveActive
@ cdecl SetScreenSaveActive(long) TTYDRV_SetScreenSaveActive @ cdecl SetScreenSaveActive(long) TTYDRV_SetScreenSaveActive
@ cdecl GetScreenSaveTimeout() TTYDRV_GetScreenSaveTimeout
@ cdecl SetScreenSaveTimeout(long) TTYDRV_SetScreenSaveTimeout
@ cdecl LoadOEMResource(long long) TTYDRV_LoadOEMResource @ cdecl LoadOEMResource(long long) TTYDRV_LoadOEMResource
@ cdecl CreateWindow(long ptr long) TTYDRV_CreateWindow @ cdecl CreateWindow(long ptr long) TTYDRV_CreateWindow
@ cdecl DestroyWindow(long) TTYDRV_DestroyWindow @ cdecl DestroyWindow(long) TTYDRV_DestroyWindow
......
...@@ -85,26 +85,6 @@ void TTYDRV_SetScreenSaveActive(BOOL bActivate) ...@@ -85,26 +85,6 @@ void TTYDRV_SetScreenSaveActive(BOOL bActivate)
FIXME("(%d): stub\n", bActivate); FIXME("(%d): stub\n", bActivate);
} }
/***********************************************************************
* GetScreenSaveTimeout (TTYDRV.@)
*
* Return the screen saver timeout
*/
int TTYDRV_GetScreenSaveTimeout(void)
{
return 0;
}
/***********************************************************************
* SetScreenSaveTimeout (TTYDRV.@)
*
* Set the screen saver timeout
*/
void TTYDRV_SetScreenSaveTimeout(int nTimeout)
{
FIXME("(%d): stub\n", nTimeout);
}
/********************************************************************** /**********************************************************************
* LoadOEMResource (TTYDRV.@) * LoadOEMResource (TTYDRV.@)
*/ */
......
...@@ -73,8 +73,6 @@ static BOOL load_driver(void) ...@@ -73,8 +73,6 @@ static BOOL load_driver(void)
GET_USER_FUNC(SetCursorPos); GET_USER_FUNC(SetCursorPos);
GET_USER_FUNC(GetScreenSaveActive); GET_USER_FUNC(GetScreenSaveActive);
GET_USER_FUNC(SetScreenSaveActive); GET_USER_FUNC(SetScreenSaveActive);
GET_USER_FUNC(GetScreenSaveTimeout);
GET_USER_FUNC(SetScreenSaveTimeout);
GET_USER_FUNC(LoadOEMResource); GET_USER_FUNC(LoadOEMResource);
GET_USER_FUNC(AcquireClipboard); GET_USER_FUNC(AcquireClipboard);
GET_USER_FUNC(ReleaseClipboard); GET_USER_FUNC(ReleaseClipboard);
......
...@@ -72,8 +72,6 @@ debug_channels (bitblt bitmap clipboard cursor dinput event font gdi graphics ...@@ -72,8 +72,6 @@ debug_channels (bitblt bitmap clipboard cursor dinput event font gdi graphics
@ cdecl SetCursorPos(long long) X11DRV_SetCursorPos @ cdecl SetCursorPos(long long) X11DRV_SetCursorPos
@ cdecl GetScreenSaveActive() X11DRV_GetScreenSaveActive @ cdecl GetScreenSaveActive() X11DRV_GetScreenSaveActive
@ cdecl SetScreenSaveActive(long) X11DRV_SetScreenSaveActive @ cdecl SetScreenSaveActive(long) X11DRV_SetScreenSaveActive
@ cdecl GetScreenSaveTimeout() X11DRV_GetScreenSaveTimeout
@ cdecl SetScreenSaveTimeout(long) X11DRV_SetScreenSaveTimeout
@ cdecl LoadOEMResource(long long) X11DRV_LoadOEMResource @ cdecl LoadOEMResource(long long) X11DRV_LoadOEMResource
@ cdecl CreateWindow(long ptr long) X11DRV_CreateWindow @ cdecl CreateWindow(long ptr long) X11DRV_CreateWindow
@ cdecl DestroyWindow(long) X11DRV_DestroyWindow @ cdecl DestroyWindow(long) X11DRV_DestroyWindow
......
...@@ -501,34 +501,3 @@ void X11DRV_SetScreenSaveActive(BOOL bActivate) ...@@ -501,34 +501,3 @@ void X11DRV_SetScreenSaveActive(BOOL bActivate)
TSXSetScreenSaver(gdi_display, timeout, interval, prefer_blanking, TSXSetScreenSaver(gdi_display, timeout, interval, prefer_blanking,
allow_exposures); allow_exposures);
} }
/***********************************************************************
* GetScreenSaveTimeout (X11DRV.@)
*
* Return the screen saver timeout
*/
int X11DRV_GetScreenSaveTimeout(void)
{
int timeout, temp;
TSXGetScreenSaver(gdi_display, &timeout, &temp, &temp, &temp);
return timeout;
}
/***********************************************************************
* SetScreenSaveTimeout (X11DRV.@)
*
* Set the screen saver timeout
*/
void X11DRV_SetScreenSaveTimeout(int nTimeout)
{
int timeout, interval, prefer_blanking, allow_exposures;
TSXGetScreenSaver(gdi_display, &timeout, &interval, &prefer_blanking,
&allow_exposures);
/* timeout is a 16bit entity (CARD16) in the protocol, so it should
* not get over 32767 or it will get negative. */
if (nTimeout>32767) nTimeout = 32767;
TSXSetScreenSaver(gdi_display, nTimeout, interval, prefer_blanking,
allow_exposures);
}
...@@ -63,8 +63,6 @@ typedef struct tagUSER_DRIVER { ...@@ -63,8 +63,6 @@ typedef struct tagUSER_DRIVER {
/* screen saver functions */ /* screen saver functions */
BOOL (*pGetScreenSaveActive)(void); BOOL (*pGetScreenSaveActive)(void);
void (*pSetScreenSaveActive)(BOOL); void (*pSetScreenSaveActive)(BOOL);
int (*pGetScreenSaveTimeout)(void);
void (*pSetScreenSaveTimeout)(int);
/* resource functions */ /* resource functions */
HANDLE (*pLoadOEMResource)(WORD,WORD); HANDLE (*pLoadOEMResource)(WORD,WORD);
/* clipboard functions */ /* clipboard functions */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment