|
|
@ -407,12 +407,13 @@ int rendered_mode_player_inner(NotCurses& nc, int argc, char** argv,
|
|
|
|
vopts.blitter = marsh.blitter;
|
|
|
|
vopts.blitter = marsh.blitter;
|
|
|
|
if(!loop){
|
|
|
|
if(!loop){
|
|
|
|
if(displaytime < 0){
|
|
|
|
if(displaytime < 0){
|
|
|
|
stdn->printf(0, NCAlign::Center, "press a key to advance");
|
|
|
|
stdn->printf(0, NCAlign::Center, "press space to advance");
|
|
|
|
if(!nc.render()){
|
|
|
|
if(!nc.render()){
|
|
|
|
ncplane_destroy(n);
|
|
|
|
ncplane_destroy(n);
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ncinput ni;
|
|
|
|
ncinput ni;
|
|
|
|
|
|
|
|
do{
|
|
|
|
do{
|
|
|
|
do{
|
|
|
|
nc.get(true, &ni);
|
|
|
|
nc.get(true, &ni);
|
|
|
|
}while(ni.evtype == EvType::Release);
|
|
|
|
}while(ni.evtype == EvType::Release);
|
|
|
@ -423,18 +424,23 @@ int rendered_mode_player_inner(NotCurses& nc, int argc, char** argv,
|
|
|
|
}else if(ni.id == 'L'){
|
|
|
|
}else if(ni.id == 'L'){
|
|
|
|
--i;
|
|
|
|
--i;
|
|
|
|
nc.refresh(nullptr, nullptr);
|
|
|
|
nc.refresh(nullptr, nullptr);
|
|
|
|
|
|
|
|
break;
|
|
|
|
}else if(ni.id >= '0' && ni.id <= '6'){
|
|
|
|
}else if(ni.id >= '0' && ni.id <= '6'){
|
|
|
|
blitter = vopts.blitter = static_cast<ncblitter_e>(ni.id - '0');
|
|
|
|
blitter = vopts.blitter = static_cast<ncblitter_e>(ni.id - '0');
|
|
|
|
--i; // rerun same input with the new blitter
|
|
|
|
--i; // rerun same input with the new blitter
|
|
|
|
|
|
|
|
break;
|
|
|
|
}else if(ni.id >= '7' && ni.id <= '9'){
|
|
|
|
}else if(ni.id >= '7' && ni.id <= '9'){
|
|
|
|
--i; // just absorb the input
|
|
|
|
--i; // just absorb the input
|
|
|
|
|
|
|
|
break;
|
|
|
|
}else if(ni.id == NCKey::Resize){
|
|
|
|
}else if(ni.id == NCKey::Resize){
|
|
|
|
--i; // rerun with the new size
|
|
|
|
--i; // rerun with the new size
|
|
|
|
if(!nc.refresh(&dimy, &dimx)){
|
|
|
|
if(!nc.refresh(&dimy, &dimx)){
|
|
|
|
ncplane_destroy(n);
|
|
|
|
ncplane_destroy(n);
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}while(ni.id != ' ');
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
// FIXME do we still want to honor keybindings when timing out?
|
|
|
|
// FIXME do we still want to honor keybindings when timing out?
|
|
|
|
struct timespec ts;
|
|
|
|
struct timespec ts;
|
|
|
|