Skip to content
Permalink
Browse files

haiku: Fixed missing title bar for windows with decorations.

B_BORDERED_WINDOW_LOOK has a border but no title bar.
  • Loading branch information
philippwiesemann committed Jun 3, 2017
1 parent fc436a3 commit 2113208d9839a982173c66bc27a187f66eb1cd0d
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/video/haiku/SDL_BWin.h
  2. +1 −1 src/video/haiku/SDL_bwindow.cc
@@ -586,7 +586,7 @@ class SDL_BWin:public BDirectWindow
if(msg->FindBool("window-border", &bEnabled) != B_OK) {
return;
}
SetLook(bEnabled ? B_BORDERED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
SetLook(bEnabled ? B_TITLED_WINDOW_LOOK : B_NO_BORDER_WINDOW_LOOK);
}

void _SetResizable(BMessage *msg) {
@@ -41,7 +41,7 @@ static SDL_INLINE SDL_BApp *_GetBeApp() {

static int _InitWindow(_THIS, SDL_Window *window) {
uint32 flags = 0;
window_look look = B_BORDERED_WINDOW_LOOK;
window_look look = B_TITLED_WINDOW_LOOK;

BRect bounds(
window->x,

0 comments on commit 2113208

Please sign in to comment.