From 9b009dfb013d26a305612d58463731be0f527e48 Mon Sep 17 00:00:00 2001 From: François Revol Date: Sun, 25 Nov 2012 18:35:18 +0100 Subject: beos: Fix toolbar border Use B_PLAIN_BORDER instead of the default B_FANCY_BORDER. Also force full redraw on resize to avoid artefacts. --- beos/scaffolding.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'beos') diff --git a/beos/scaffolding.cpp b/beos/scaffolding.cpp index 3c4262410..e52e20963 100644 --- a/beos/scaffolding.cpp +++ b/beos/scaffolding.cpp @@ -2166,11 +2166,14 @@ nsbeos_scaffolding *nsbeos_new_scaffolding(struct gui_window *toplevel) // the toolbar is also the dragger for now // XXX: try to stuff it in the status bar at the bottom // (BDragger *must* be a parent, sibiling or direct child of NSBaseView!) + // XXX: B_FULL_UPDATE_ON_RESIZE avoids leaving bits on resize, + // but causes flicker rect = g->top_view->Bounds(); rect.bottom = rect.top + TOOLBAR_HEIGHT - 1; rect.right = rect.right - DRAGGER_WIDTH; g->tool_bar = new BBox(rect, "Toolbar", - B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP, B_WILL_DRAW); + B_FOLLOW_LEFT_RIGHT | B_FOLLOW_TOP, B_WILL_DRAW | B_FRAME_EVENTS + | B_FULL_UPDATE_ON_RESIZE | B_NAVIGABLE_JUMP, B_PLAIN_BORDER); g->top_view->AddChild(g->tool_bar); g->tool_bar->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); g->tool_bar->SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR)) ; -- cgit v1.2.3