src/video/haiku/SDL_bmodes.cc
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12201 8bdc4d340419
     1.1 --- a/src/video/haiku/SDL_bmodes.cc	Tue Aug 07 17:28:07 2018 -0400
     1.2 +++ b/src/video/haiku/SDL_bmodes.cc	Tue Aug 07 18:07:11 2018 -0400
     1.3 @@ -132,7 +132,7 @@
     1.4  
     1.5  
     1.6  
     1.7 -int32 BE_ColorSpaceToBitsPerPixel(uint32 colorspace)
     1.8 +int32 HAIKU_ColorSpaceToBitsPerPixel(uint32 colorspace)
     1.9  {
    1.10  	int bitsperpixel;
    1.11  
    1.12 @@ -163,7 +163,7 @@
    1.13  	return(bitsperpixel);
    1.14  }
    1.15  
    1.16 -int32 BE_BPPToSDLPxFormat(int32 bpp) {
    1.17 +int32 HAIKU_BPPToSDLPxFormat(int32 bpp) {
    1.18  	/* Translation taken from SDL_windowsmodes.c */
    1.19  	switch (bpp) {
    1.20  	case 32:
    1.21 @@ -210,8 +210,8 @@
    1.22  #endif
    1.23  
    1.24  	/* Set the format */
    1.25 -	int32 bpp = BE_ColorSpaceToBitsPerPixel(bmode->space);
    1.26 -	mode->format = BE_BPPToSDLPxFormat(bpp);
    1.27 +	int32 bpp = HAIKU_ColorSpaceToBitsPerPixel(bmode->space);
    1.28 +	mode->format = HAIKU_BPPToSDLPxFormat(bpp);
    1.29  }
    1.30  
    1.31  /* Later, there may be more than one monitor available */
    1.32 @@ -235,7 +235,7 @@
    1.33   * Functions called by SDL
    1.34   */
    1.35  
    1.36 -int BE_InitModes(_THIS) {
    1.37 +int HAIKU_InitModes(_THIS) {
    1.38  	BScreen screen;
    1.39  
    1.40  	/* TODO: When Haiku supports multiple display screens, call
    1.41 @@ -244,13 +244,13 @@
    1.42  	return 0;
    1.43  }
    1.44  
    1.45 -int BE_QuitModes(_THIS) {
    1.46 +int HAIKU_QuitModes(_THIS) {
    1.47  	/* FIXME: Nothing really needs to be done here at the moment? */
    1.48  	return 0;
    1.49  }
    1.50  
    1.51  
    1.52 -int BE_GetDisplayBounds(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect) {
    1.53 +int HAIKU_GetDisplayBounds(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect) {
    1.54  	BScreen bscreen;
    1.55  	BRect rc = bscreen.Frame();
    1.56  	rect->x = (int)rc.left;
    1.57 @@ -260,7 +260,7 @@
    1.58  	return 0;
    1.59  }
    1.60  
    1.61 -void BE_GetDisplayModes(_THIS, SDL_VideoDisplay *display) {
    1.62 +void HAIKU_GetDisplayModes(_THIS, SDL_VideoDisplay *display) {
    1.63  	/* Get the current screen */
    1.64  	BScreen bscreen;
    1.65  
    1.66 @@ -285,7 +285,7 @@
    1.67  }
    1.68  
    1.69  
    1.70 -int BE_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode){
    1.71 +int HAIKU_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode){
    1.72  	/* Get the current screen */
    1.73  	BScreen bscreen;
    1.74  	if(!bscreen.IsValid()) {
    1.75 @@ -318,7 +318,7 @@
    1.76  #if SDL_VIDEO_OPENGL
    1.77  	/* FIXME: Is there some way to reboot the OpenGL context?  This doesn't
    1.78  	   help */
    1.79 -//	BE_GL_RebootContexts(_this);
    1.80 +//	HAIKU_GL_RebootContexts(_this);
    1.81  #endif
    1.82  
    1.83  	return 0;