src/video/haiku/SDL_bframebuffer.cc
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12201 8bdc4d340419
     1.1 --- a/src/video/haiku/SDL_bframebuffer.cc	Tue Aug 07 17:28:07 2018 -0400
     1.2 +++ b/src/video/haiku/SDL_bframebuffer.cc	Tue Aug 07 18:07:11 2018 -0400
     1.3 @@ -36,7 +36,7 @@
     1.4  #endif
     1.5  
     1.6  #ifndef DRAWTHREAD
     1.7 -static int32 BE_UpdateOnce(SDL_Window *window);
     1.8 +static int32 HAIKU_UpdateOnce(SDL_Window *window);
     1.9  #endif
    1.10  
    1.11  static SDL_INLINE SDL_BWin *_ToBeWin(SDL_Window *window) {
    1.12 @@ -47,7 +47,7 @@
    1.13  	return ((SDL_BApp*)be_app);
    1.14  }
    1.15  
    1.16 -int BE_CreateWindowFramebuffer(_THIS, SDL_Window * window,
    1.17 +int HAIKU_CreateWindowFramebuffer(_THIS, SDL_Window * window,
    1.18                                         Uint32 * format,
    1.19                                         void ** pixels, int *pitch) {
    1.20  	SDL_BWin *bwin = _ToBeWin(window);
    1.21 @@ -64,8 +64,8 @@
    1.22  	/* format */
    1.23  	display_mode bmode;
    1.24  	bscreen.GetMode(&bmode);
    1.25 -	int32 bpp = BE_ColorSpaceToBitsPerPixel(bmode.space);
    1.26 -	*format = BE_BPPToSDLPxFormat(bpp);
    1.27 +	int32 bpp = HAIKU_ColorSpaceToBitsPerPixel(bmode.space);
    1.28 +	*format = HAIKU_BPPToSDLPxFormat(bpp);
    1.29  
    1.30  	/* Create the new bitmap object */
    1.31  	BBitmap *bitmap = bwin->GetBitmap();
    1.32 @@ -99,7 +99,7 @@
    1.33  
    1.34  
    1.35  
    1.36 -int BE_UpdateWindowFramebuffer(_THIS, SDL_Window * window,
    1.37 +int HAIKU_UpdateWindowFramebuffer(_THIS, SDL_Window * window,
    1.38                                        const SDL_Rect * rects, int numrects) {
    1.39  	if(!window)
    1.40  		return 0;
    1.41 @@ -112,13 +112,13 @@
    1.42  	bwin->UnlockBuffer();
    1.43  #else
    1.44  	bwin->SetBufferDirty(true);
    1.45 -	BE_UpdateOnce(window);
    1.46 +	HAIKU_UpdateOnce(window);
    1.47  #endif
    1.48  
    1.49  	return 0;
    1.50  }
    1.51  
    1.52 -int32 BE_DrawThread(void *data) {
    1.53 +int32 HAIKU_DrawThread(void *data) {
    1.54  	SDL_BWin *bwin = (SDL_BWin*)data;
    1.55  	
    1.56  	BScreen bscreen;
    1.57 @@ -181,7 +181,7 @@
    1.58  	return B_OK;
    1.59  }
    1.60  
    1.61 -void BE_DestroyWindowFramebuffer(_THIS, SDL_Window * window) {
    1.62 +void HAIKU_DestroyWindowFramebuffer(_THIS, SDL_Window * window) {
    1.63  	SDL_BWin *bwin = _ToBeWin(window);
    1.64  	
    1.65  	bwin->LockBuffer();
    1.66 @@ -202,7 +202,7 @@
    1.67   * solved, but I doubt it- they were pretty sporadic before now.
    1.68   */
    1.69  #ifndef DRAWTHREAD
    1.70 -static int32 BE_UpdateOnce(SDL_Window *window) {
    1.71 +static int32 HAIKU_UpdateOnce(SDL_Window *window) {
    1.72  	SDL_BWin *bwin = _ToBeWin(window);
    1.73  	BScreen bscreen;
    1.74  	if(!bscreen.IsValid()) {