src/video/bwindow/SDL_bwindow.cc
changeset 5925 262ce29aabf6
parent 5922 efd1498efdff
child 5932 cd08863bcb49
     1.1 --- a/src/video/bwindow/SDL_bwindow.cc	Mon Jul 25 13:47:19 2011 +0000
     1.2 +++ b/src/video/bwindow/SDL_bwindow.cc	Mon Jul 25 16:46:55 2011 +0000
     1.3 @@ -37,25 +37,25 @@
     1.4  	return ((SDL_BApp*)be_app);
     1.5  }
     1.6  
     1.7 -int _InitWindow(_THIS, SDL_Window *window) {printf("SDL_bwindow.cc: 40\n");
     1.8 +int _InitWindow(_THIS, SDL_Window *window) {
     1.9  	BRect bounds(
    1.10          window->x,
    1.11          window->y,
    1.12          window->x + window->w - 1,	//BeWindows have an off-by-one px w/h thing
    1.13          window->y + window->h - 1
    1.14      );
    1.15 -printf("SDL_bwindow.cc: 30\n");
    1.16 +
    1.17      SDL_BWin *bwin = new(std::nothrow) SDL_BWin(bounds);
    1.18      if(bwin == NULL)
    1.19      	return ENOMEM;
    1.20 -printf("SDL_bwindow.cc: 51\n");
    1.21 +
    1.22      window->driverdata = bwin;
    1.23      int32 winID = _GetBeApp()->GetID(window);
    1.24      bwin->SetID(winID);
    1.25      return 0;
    1.26  }
    1.27  
    1.28 -int BE_CreateWindow(_THIS, SDL_Window *window) {printf("SDL_bwindow.cc: 58\n");
    1.29 +int BE_CreateWindow(_THIS, SDL_Window *window) {
    1.30  	if(_InitWindow(_this, window) == ENOMEM)
    1.31  		return ENOMEM;
    1.32