Skip to content

Commit

Permalink
haiku: Fixed missing title bar for windows with decorations.
Browse files Browse the repository at this point in the history
B_BORDERED_WINDOW_LOOK has a border but no title bar.
  • Loading branch information
philippwiesemann committed Jun 3, 2017
1 parent fc436a3 commit 2113208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video/haiku/SDL_BWin.h
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/video/haiku/SDL_bwindow.cc
Expand Up @@ -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,
Expand Down

0 comments on commit 2113208

Please sign in to comment.