mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=3899
This commit is contained in:
parent
23ced2dce4
commit
51ae6d125d
|
@ -1638,6 +1638,7 @@ void ACTIVE_TASK::check_graphics_mode_ack() {
|
|||
char buf[MSG_CHANNEL_SIZE];
|
||||
if (app_client_shm.shm->graphics_reply.get_msg(buf)) {
|
||||
mode = app_client_shm.decode_graphics_msg(buf);
|
||||
//msg_printf(NULL, MSG_INFO, "got graphics ack %d", mode);
|
||||
if (mode != MODE_REREAD_PREFS) {
|
||||
graphics_mode_acked = mode;
|
||||
}
|
||||
|
@ -1695,6 +1696,7 @@ void ACTIVE_TASK_SET::save_app_modes() {
|
|||
atp = active_tasks[i];
|
||||
if (atp->scheduler_state != CPU_SCHED_RUNNING) continue;
|
||||
atp->graphics_mode_before_ss = atp->graphics_mode_acked;
|
||||
//msg_printf(NULL, MSG_INFO, "saved mode %d", atp->graphics_mode_acked);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,6 +74,13 @@ void SS_LOGIC::stop_ss() {
|
|||
void SS_LOGIC::poll() {
|
||||
ACTIVE_TASK* atp;
|
||||
|
||||
#if 0
|
||||
// if you want to debug screensaver functionality...
|
||||
static int foo=0;
|
||||
foo++;
|
||||
if (foo == 8) start_ss(time(0)+1000);
|
||||
#endif
|
||||
|
||||
if (!gstate.activities_suspended) {
|
||||
if (do_ss) {
|
||||
if (blank_time && (time(0) > blank_time)) {
|
||||
|
|
Loading…
Reference in New Issue