eqemu

changeset 1:374d91dd2996

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Jul 2014 05:44:26 +0300
parents 01fb0dee8a92
children 48dce4ee4850
files src/main.cc
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/src/main.cc	Tue Jul 15 04:46:10 2014 +0300
     1.2 +++ b/src/main.cc	Tue Jul 15 05:44:26 2014 +0300
     1.3 @@ -7,6 +7,7 @@
     1.4  #include <GL/glew.h>
     1.5  #include <X11/Xlib.h>
     1.6  #include <GL/glx.h>
     1.7 +#include "dev.h"
     1.8  
     1.9  static bool init();
    1.10  static void cleanup();
    1.11 @@ -61,6 +62,8 @@
    1.12  
    1.13  static bool init()
    1.14  {
    1.15 +	start_dev();
    1.16 +
    1.17  	if(!(dpy = XOpenDisplay(0))) {
    1.18  		fprintf(stderr, "failed to connect to the X server!\n");
    1.19  		return false;
    1.20 @@ -75,6 +78,8 @@
    1.21  
    1.22  static void cleanup()
    1.23  {
    1.24 +	stop_dev();
    1.25 +
    1.26  	if(!dpy) return;
    1.27  
    1.28  	if(win) {