atari:xbios: Disable NOVA blank time while running SDL-1.2
authorPatrice Mandin <patmandin@gmail.com>
Mon, 06 Nov 2017 20:21:18 +0100
branchSDL-1.2
changeset 11691ec421fd512ba
parent 11681 462d7ea5d108
child 11692 bff3a6018318
atari:xbios: Disable NOVA blank time while running
src/video/xbios/SDL_xbios_nova.c
     1.1 --- a/src/video/xbios/SDL_xbios_nova.c	Sat Nov 04 23:25:48 2017 +0100
     1.2 +++ b/src/video/xbios/SDL_xbios_nova.c	Mon Nov 06 20:21:18 2017 +0100
     1.3 @@ -50,6 +50,7 @@
     1.4  static nova_xcb_t *NOVA_xcb;			/* Pointer to Nova infos */
     1.5  static nova_resolution_t *NOVA_modes;	/* Video modes loaded from a file */
     1.6  static int NOVA_modecount;				/* Number of loaded modes */
     1.7 +static unsigned char NOVA_blnk_time;	/* Original blank time */
     1.8  
     1.9  /*--- Functions ---*/
    1.10  
    1.11 @@ -164,6 +165,9 @@
    1.12  	XBIOS_oldvbase = NOVA_xcb->base;
    1.13  
    1.14  	/* TODO: save palette ? */
    1.15 +
    1.16 +	NOVA_blnk_time = NOVA_xcb->blnk_time;
    1.17 +	NOVA_xcb->blnk_time = 0;
    1.18  }
    1.19  
    1.20  static void setMode(_THIS, xbiosmode_t *new_video_mode)
    1.21 @@ -177,6 +181,8 @@
    1.22  	NOVA_SetMode(this, XBIOS_oldvmode);
    1.23  
    1.24  	/* TODO: restore palette ? */
    1.25 +
    1.26 +	NOVA_xcb->blnk_time = NOVA_blnk_time;
    1.27  }
    1.28  
    1.29  static void vsync_NOVA(_THIS)