Retrun EAGAIN if the current video mode is a graphics mode.
This commit is contained in:
parent
6d479db3c3
commit
f9e730bbb3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42749
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: daemon_saver.c,v 1.12 1998/11/04 03:49:38 peter Exp $
|
||||
* $Id: daemon_saver.c,v 1.13 1999/01/11 03:18:45 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -200,7 +200,7 @@ daemon_saver(video_adapter_t *adp, int blank)
|
||||
|
||||
if (blank) {
|
||||
if (adp->va_mode_flags & V_INFO_GRAPHICS)
|
||||
return ENODEV;
|
||||
return EAGAIN;
|
||||
if (blanked == 0) {
|
||||
window = (u_short *)adp->va_window;
|
||||
/* clear the screen and set the border color */
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: snake_saver.c,v 1.20 1998/11/04 03:49:39 peter Exp $
|
||||
* $Id: snake_saver.c,v 1.21 1999/01/11 03:18:52 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -59,7 +59,7 @@ snake_saver(video_adapter_t *adp, int blank)
|
||||
|
||||
if (blank) {
|
||||
if (adp->va_mode_flags & V_INFO_GRAPHICS)
|
||||
return ENODEV;
|
||||
return EAGAIN;
|
||||
if (blanked <= 0) {
|
||||
window = (u_short *)adp->va_window;
|
||||
fillw(((FG_LIGHTGREY|BG_BLACK)<<8) | scr_map[0x20],
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: star_saver.c,v 1.17 1998/11/04 03:49:39 peter Exp $
|
||||
* $Id: star_saver.c,v 1.18 1999/01/11 03:18:53 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -59,7 +59,7 @@ star_saver(video_adapter_t *adp, int blank)
|
||||
|
||||
if (blank) {
|
||||
if (adp->va_mode_flags & V_INFO_GRAPHICS)
|
||||
return ENODEV;
|
||||
return EAGAIN;
|
||||
if (!blanked) {
|
||||
window = (u_short *)adp->va_window;
|
||||
/* clear the screen and set the border color */
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: daemon_saver.c,v 1.12 1998/11/04 03:49:38 peter Exp $
|
||||
* $Id: daemon_saver.c,v 1.13 1999/01/11 03:18:45 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -200,7 +200,7 @@ daemon_saver(video_adapter_t *adp, int blank)
|
||||
|
||||
if (blank) {
|
||||
if (adp->va_mode_flags & V_INFO_GRAPHICS)
|
||||
return ENODEV;
|
||||
return EAGAIN;
|
||||
if (blanked == 0) {
|
||||
window = (u_short *)adp->va_window;
|
||||
/* clear the screen and set the border color */
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: snake_saver.c,v 1.20 1998/11/04 03:49:39 peter Exp $
|
||||
* $Id: snake_saver.c,v 1.21 1999/01/11 03:18:52 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -59,7 +59,7 @@ snake_saver(video_adapter_t *adp, int blank)
|
||||
|
||||
if (blank) {
|
||||
if (adp->va_mode_flags & V_INFO_GRAPHICS)
|
||||
return ENODEV;
|
||||
return EAGAIN;
|
||||
if (blanked <= 0) {
|
||||
window = (u_short *)adp->va_window;
|
||||
fillw(((FG_LIGHTGREY|BG_BLACK)<<8) | scr_map[0x20],
|
||||
|
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: star_saver.c,v 1.17 1998/11/04 03:49:39 peter Exp $
|
||||
* $Id: star_saver.c,v 1.18 1999/01/11 03:18:53 yokota Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -59,7 +59,7 @@ star_saver(video_adapter_t *adp, int blank)
|
||||
|
||||
if (blank) {
|
||||
if (adp->va_mode_flags & V_INFO_GRAPHICS)
|
||||
return ENODEV;
|
||||
return EAGAIN;
|
||||
if (!blanked) {
|
||||
window = (u_short *)adp->va_window;
|
||||
/* clear the screen and set the border color */
|
||||
|
Loading…
Reference in New Issue
Block a user