Removed Get/SetScreenSaveTimeout user driver functions because they
are not used.
This commit is contained in:
parent
caf81dc0a6
commit
c7de3401ac
|
@ -55,8 +55,6 @@ debug_channels (ttydrv)
|
|||
@ cdecl SetCursor(ptr) TTYDRV_SetCursor
|
||||
@ cdecl GetScreenSaveActive() TTYDRV_GetScreenSaveActive
|
||||
@ cdecl SetScreenSaveActive(long) TTYDRV_SetScreenSaveActive
|
||||
@ cdecl GetScreenSaveTimeout() TTYDRV_GetScreenSaveTimeout
|
||||
@ cdecl SetScreenSaveTimeout(long) TTYDRV_SetScreenSaveTimeout
|
||||
@ cdecl LoadOEMResource(long long) TTYDRV_LoadOEMResource
|
||||
@ cdecl CreateWindow(long ptr long) TTYDRV_CreateWindow
|
||||
@ cdecl DestroyWindow(long) TTYDRV_DestroyWindow
|
||||
|
|
|
@ -85,26 +85,6 @@ void TTYDRV_SetScreenSaveActive(BOOL 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.@)
|
||||
*/
|
||||
|
|
|
@ -73,8 +73,6 @@ static BOOL load_driver(void)
|
|||
GET_USER_FUNC(SetCursorPos);
|
||||
GET_USER_FUNC(GetScreenSaveActive);
|
||||
GET_USER_FUNC(SetScreenSaveActive);
|
||||
GET_USER_FUNC(GetScreenSaveTimeout);
|
||||
GET_USER_FUNC(SetScreenSaveTimeout);
|
||||
GET_USER_FUNC(LoadOEMResource);
|
||||
GET_USER_FUNC(AcquireClipboard);
|
||||
GET_USER_FUNC(ReleaseClipboard);
|
||||
|
|
|
@ -72,8 +72,6 @@ debug_channels (bitblt bitmap clipboard cursor dinput event font gdi graphics
|
|||
@ cdecl SetCursorPos(long long) X11DRV_SetCursorPos
|
||||
@ cdecl GetScreenSaveActive() X11DRV_GetScreenSaveActive
|
||||
@ cdecl SetScreenSaveActive(long) X11DRV_SetScreenSaveActive
|
||||
@ cdecl GetScreenSaveTimeout() X11DRV_GetScreenSaveTimeout
|
||||
@ cdecl SetScreenSaveTimeout(long) X11DRV_SetScreenSaveTimeout
|
||||
@ cdecl LoadOEMResource(long long) X11DRV_LoadOEMResource
|
||||
@ cdecl CreateWindow(long ptr long) X11DRV_CreateWindow
|
||||
@ cdecl DestroyWindow(long) X11DRV_DestroyWindow
|
||||
|
|
|
@ -501,34 +501,3 @@ void X11DRV_SetScreenSaveActive(BOOL bActivate)
|
|||
TSXSetScreenSaver(gdi_display, timeout, interval, prefer_blanking,
|
||||
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 {
|
|||
/* screen saver functions */
|
||||
BOOL (*pGetScreenSaveActive)(void);
|
||||
void (*pSetScreenSaveActive)(BOOL);
|
||||
int (*pGetScreenSaveTimeout)(void);
|
||||
void (*pSetScreenSaveTimeout)(int);
|
||||
/* resource functions */
|
||||
HANDLE (*pLoadOEMResource)(WORD,WORD);
|
||||
/* clipboard functions */
|
||||
|
|
Loading…
Reference in New Issue