Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
096bab67
Commit
096bab67
authored
Nov 20, 2001
by
Andriy Palamarchuk
Committed by
Alexandre Julliard
Nov 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented processing for actions SPI_GET/SETSCREENSAVETIMEOUT,
SPI_GET/SETSCREENSAVEACTIVE, SPI_GET/SETSCREENSAVERRUNNING.
parent
a630510b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
51 deletions
+128
-51
x11drv_main.c
dlls/x11drv/x11drv_main.c
+17
-5
sysparams.c
windows/sysparams.c
+111
-46
No files found.
dlls/x11drv/x11drv_main.c
View file @
096bab67
...
...
@@ -490,10 +490,16 @@ BOOL X11DRV_GetScreenSaveActive(void)
*/
void
X11DRV_SetScreenSaveActive
(
BOOL
bActivate
)
{
if
(
bActivate
)
TSXActivateScreenSaver
(
gdi_display
);
else
TSXResetScreenSaver
(
gdi_display
);
int
timeout
,
interval
,
prefer_blanking
,
allow_exposures
;
static
int
last_timeout
=
15
*
60
;
TSXGetScreenSaver
(
gdi_display
,
&
timeout
,
&
interval
,
&
prefer_blanking
,
&
allow_exposures
);
if
(
timeout
)
last_timeout
=
timeout
;
timeout
=
bActivate
?
last_timeout
:
0
;
TSXSetScreenSaver
(
gdi_display
,
timeout
,
interval
,
prefer_blanking
,
allow_exposures
);
}
/***********************************************************************
...
...
@@ -515,8 +521,14 @@ int X11DRV_GetScreenSaveTimeout(void)
*/
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
,
60
,
DefaultBlanking
,
DefaultExposures
);
TSXSetScreenSaver
(
gdi_display
,
nTimeout
,
interval
,
prefer_blanking
,
allow_exposures
);
}
windows/sysparams.c
View file @
096bab67
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment