diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 1997-10-01 20:53:41 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 1997-10-01 20:53:41 +0000 |
| commit | b478da3630df5f29cd33dec5774ea52477eaf8fc (patch) | |
| tree | fbb5a6c96db92598dc840132b15d96ad751f8b51 /lib/libvgl/main.c | |
| parent | 3bd724f2b3e64d033bf79729a6b89473ee4a3b14 (diff) | |
Notes
Diffstat (limited to 'lib/libvgl/main.c')
| -rw-r--r-- | lib/libvgl/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libvgl/main.c b/lib/libvgl/main.c index 4334f4ea87b9..a7af6e9500ce 100644 --- a/lib/libvgl/main.c +++ b/lib/libvgl/main.c @@ -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: main.c,v 1.14 1997/08/15 12:32:59 sos Exp $ + * $Id: main.c,v 1.1 1997/08/17 21:09:34 sos Exp $ */ #include <stdio.h> @@ -45,12 +45,15 @@ static byte *VGLBuf; static byte *VGLMem; static int VGLSwitchPending; static int VGLOnDisplay; +static int VGLInitDone = 0; void VGLEnd() { struct vt_mode smode; + if (!VGLInitDone) + return; /* while (!VGLOnDisplay) pause(); VGLCheckSwitch();; @@ -65,6 +68,7 @@ struct vt_mode smode; ioctl(0, VT_SETMODE, &smode); free(VGLBuf); free(VGLDisplay); + VGLKeyboardEnd(); } static void @@ -169,6 +173,7 @@ VGLInit(int mode) return 1; } VGLTextSetFontFile((byte*)0); + VGLInitDone = 1; return 0; } |
