src/video/haiku/SDL_bwindow.cc
changeset 12082 09999a0e8f9a
parent 11811 5d94cb6b24d3
child 12201 8bdc4d340419
     1.1 --- a/src/video/haiku/SDL_bwindow.cc	Tue Aug 07 17:28:07 2018 -0400
     1.2 +++ b/src/video/haiku/SDL_bwindow.cc	Tue Aug 07 18:07:11 2018 -0400
     1.3 @@ -75,7 +75,7 @@
     1.4      return 0;
     1.5  }
     1.6  
     1.7 -int BE_CreateWindow(_THIS, SDL_Window *window) {
     1.8 +int HAIKU_CreateWindow(_THIS, SDL_Window *window) {
     1.9      if (_InitWindow(_this, window) < 0) {
    1.10          return -1;
    1.11      }
    1.12 @@ -85,7 +85,7 @@
    1.13      return 0;
    1.14  }
    1.15  
    1.16 -int BE_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) {
    1.17 +int HAIKU_CreateWindowFrom(_THIS, SDL_Window * window, const void *data) {
    1.18  
    1.19  	SDL_BWin *otherBWin = (SDL_BWin*)data;
    1.20  	if(!otherBWin->LockLooper())
    1.21 @@ -117,73 +117,73 @@
    1.22      return 0;
    1.23  }
    1.24  
    1.25 -void BE_SetWindowTitle(_THIS, SDL_Window * window) {
    1.26 +void HAIKU_SetWindowTitle(_THIS, SDL_Window * window) {
    1.27  	BMessage msg(BWIN_SET_TITLE);
    1.28  	msg.AddString("window-title", window->title);
    1.29  	_ToBeWin(window)->PostMessage(&msg);
    1.30  }
    1.31  
    1.32 -void BE_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon) {
    1.33 +void HAIKU_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon) {
    1.34  	/* FIXME: Icons not supported by Haiku */
    1.35  }
    1.36  
    1.37 -void BE_SetWindowPosition(_THIS, SDL_Window * window) {
    1.38 +void HAIKU_SetWindowPosition(_THIS, SDL_Window * window) {
    1.39  	BMessage msg(BWIN_MOVE_WINDOW);
    1.40  	msg.AddInt32("window-x", window->x);
    1.41  	msg.AddInt32("window-y", window->y);
    1.42  	_ToBeWin(window)->PostMessage(&msg);
    1.43  }
    1.44  
    1.45 -void BE_SetWindowSize(_THIS, SDL_Window * window) {
    1.46 +void HAIKU_SetWindowSize(_THIS, SDL_Window * window) {
    1.47  	BMessage msg(BWIN_RESIZE_WINDOW);
    1.48  	msg.AddInt32("window-w", window->w - 1);
    1.49  	msg.AddInt32("window-h", window->h - 1);
    1.50  	_ToBeWin(window)->PostMessage(&msg);
    1.51  }
    1.52  
    1.53 -void BE_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered) {
    1.54 +void HAIKU_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered) {
    1.55  	BMessage msg(BWIN_SET_BORDERED);
    1.56  	msg.AddBool("window-border", bordered != SDL_FALSE);
    1.57  	_ToBeWin(window)->PostMessage(&msg);
    1.58  }
    1.59  
    1.60 -void BE_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable) {
    1.61 +void HAIKU_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable) {
    1.62  	BMessage msg(BWIN_SET_RESIZABLE);
    1.63  	msg.AddBool("window-resizable", resizable != SDL_FALSE);
    1.64  	_ToBeWin(window)->PostMessage(&msg);
    1.65  }
    1.66  
    1.67 -void BE_ShowWindow(_THIS, SDL_Window * window) {
    1.68 +void HAIKU_ShowWindow(_THIS, SDL_Window * window) {
    1.69  	BMessage msg(BWIN_SHOW_WINDOW);
    1.70  	_ToBeWin(window)->PostMessage(&msg);
    1.71  }
    1.72  
    1.73 -void BE_HideWindow(_THIS, SDL_Window * window) {
    1.74 +void HAIKU_HideWindow(_THIS, SDL_Window * window) {
    1.75  	BMessage msg(BWIN_HIDE_WINDOW);
    1.76  	_ToBeWin(window)->PostMessage(&msg);
    1.77  }
    1.78  
    1.79 -void BE_RaiseWindow(_THIS, SDL_Window * window) {
    1.80 +void HAIKU_RaiseWindow(_THIS, SDL_Window * window) {
    1.81  	BMessage msg(BWIN_SHOW_WINDOW);	/* Activate this window and move to front */
    1.82  	_ToBeWin(window)->PostMessage(&msg);
    1.83  }
    1.84  
    1.85 -void BE_MaximizeWindow(_THIS, SDL_Window * window) {
    1.86 +void HAIKU_MaximizeWindow(_THIS, SDL_Window * window) {
    1.87  	BMessage msg(BWIN_MAXIMIZE_WINDOW);
    1.88  	_ToBeWin(window)->PostMessage(&msg);
    1.89  }
    1.90  
    1.91 -void BE_MinimizeWindow(_THIS, SDL_Window * window) {
    1.92 +void HAIKU_MinimizeWindow(_THIS, SDL_Window * window) {
    1.93  	BMessage msg(BWIN_MINIMIZE_WINDOW);
    1.94  	_ToBeWin(window)->PostMessage(&msg);
    1.95  }
    1.96  
    1.97 -void BE_RestoreWindow(_THIS, SDL_Window * window) {
    1.98 +void HAIKU_RestoreWindow(_THIS, SDL_Window * window) {
    1.99  	BMessage msg(BWIN_RESTORE_WINDOW);
   1.100  	_ToBeWin(window)->PostMessage(&msg);
   1.101  }
   1.102  
   1.103 -void BE_SetWindowFullscreen(_THIS, SDL_Window * window,
   1.104 +void HAIKU_SetWindowFullscreen(_THIS, SDL_Window * window,
   1.105  		SDL_VideoDisplay * display, SDL_bool fullscreen) {
   1.106  	/* Haiku tracks all video display information */
   1.107  	BMessage msg(BWIN_FULLSCREEN);
   1.108 @@ -192,29 +192,29 @@
   1.109  	
   1.110  }
   1.111  
   1.112 -int BE_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp) {
   1.113 +int HAIKU_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp) {
   1.114  	/* FIXME: Not Haiku supported */
   1.115  	return -1;
   1.116  }
   1.117  
   1.118 -int BE_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp) {
   1.119 +int HAIKU_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp) {
   1.120  	/* FIXME: Not Haiku supported */
   1.121  	return -1;
   1.122  }
   1.123  
   1.124  
   1.125 -void BE_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed) {
   1.126 +void HAIKU_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed) {
   1.127  	/* TODO: Implement this! */
   1.128  }
   1.129  
   1.130 -void BE_DestroyWindow(_THIS, SDL_Window * window) {
   1.131 +void HAIKU_DestroyWindow(_THIS, SDL_Window * window) {
   1.132  	_ToBeWin(window)->LockLooper();	/* This MUST be locked */
   1.133  	_GetBeApp()->ClearID(_ToBeWin(window));
   1.134  	_ToBeWin(window)->Quit();
   1.135  	window->driverdata = NULL;
   1.136  }
   1.137  
   1.138 -SDL_bool BE_GetWindowWMInfo(_THIS, SDL_Window * window,
   1.139 +SDL_bool HAIKU_GetWindowWMInfo(_THIS, SDL_Window * window,
   1.140                                      struct SDL_SysWMinfo *info) {
   1.141  	/* FIXME: What is the point of this? What information should be included? */
   1.142  	return SDL_FALSE;