src/video/haiku/SDL_bvideo.cc
changeset 12201 8bdc4d340419
parent 12082 09999a0e8f9a
child 12503 806492103856
     1.1 --- a/src/video/haiku/SDL_bvideo.cc	Sat Aug 18 17:23:40 2018 -0400
     1.2 +++ b/src/video/haiku/SDL_bvideo.cc	Mon Sep 24 11:49:25 2018 -0700
     1.3 @@ -56,7 +56,7 @@
     1.4      device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
     1.5  
     1.6      device->driverdata = NULL; /* FIXME: Is this the cause of some of the
     1.7 -    							  SDL_Quit() errors? */
     1.8 +                                  SDL_Quit() errors? */
     1.9  
    1.10  /* TODO: Figure out if any initialization needs to go here */
    1.11  
    1.12 @@ -122,37 +122,36 @@
    1.13  }
    1.14  
    1.15  VideoBootStrap HAIKU_bootstrap = {
    1.16 -	"haiku", "Haiku graphics",
    1.17 -	HAIKU_Available, HAIKU_CreateDevice
    1.18 +    "haiku", "Haiku graphics",
    1.19 +    HAIKU_Available, HAIKU_CreateDevice
    1.20  };
    1.21  
    1.22  void HAIKU_DeleteDevice(SDL_VideoDevice * device)
    1.23  {
    1.24 -	SDL_free(device->driverdata);
    1.25 -	SDL_free(device);
    1.26 +    SDL_free(device->driverdata);
    1.27 +    SDL_free(device);
    1.28  }
    1.29  
    1.30  int HAIKU_VideoInit(_THIS)
    1.31  {
    1.32 -	/* Initialize the Be Application for appserver interaction */
    1.33 -	if (SDL_InitBeApp() < 0) {
    1.34 -		return -1;
    1.35 -	}
    1.36 -	
    1.37 -	/* Initialize video modes */
    1.38 -	HAIKU_InitModes(_this);
    1.39 +    /* Initialize the Be Application for appserver interaction */
    1.40 +    if (SDL_InitBeApp() < 0) {
    1.41 +        return -1;
    1.42 +    }
    1.43 +    
    1.44 +    /* Initialize video modes */
    1.45 +    HAIKU_InitModes(_this);
    1.46  
    1.47 -	/* Init the keymap */
    1.48 -	HAIKU_InitOSKeymap();
    1.49 -	
    1.50 -	
    1.51 +    /* Init the keymap */
    1.52 +    HAIKU_InitOSKeymap();
    1.53 +
    1.54  #if SDL_VIDEO_OPENGL
    1.55          /* testgl application doesn't load library, just tries to load symbols */
    1.56          /* is it correct? if so we have to load library here */
    1.57      HAIKU_GL_LoadLibrary(_this, NULL);
    1.58  #endif
    1.59  
    1.60 -        /* We're done! */
    1.61 +    /* We're done! */
    1.62      return (0);
    1.63  }
    1.64