summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2012-11-25 18:35:18 +0100
committerFran├žois Revol <revol@free.fr>2012-11-25 18:35:18 +0100
commit9b009dfb013d26a305612d58463731be0f527e48 (patch)
tree5f5d76c2fcfaef63d54b9e0f9e7586a7c4847c78
parentdea524f585d8ceff39b7ce06767feeabc9fd6184 (diff)
downloadnetsurf-9b009dfb013d26a305612d58463731be0f527e48.tar.gz
netsurf-9b009dfb013d26a305612d58463731be0f527e48.tar.bz2
beos: Fix toolbar border
Use B_PLAIN_BORDER instead of the default B_FANCY_BORDER. Also force full redraw on resize to avoid artefacts.
-rw-r--r--beos/scaffolding.cpp5
1 files changed, 4 insertions, 1 deletions
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)) ;