Merge pull request #251 from x-qq/fix_scrollbar_segfaults
fix for scrollbar segfaults * fixes #206 * fixes broken mousewheel scrolling of the scenedit palette * removed boost threads dependency * added foundation for further refactoring of the drawing and event handling code: interfaces and drawable manager with layering * removed a bunch of unneeded redraw calls * removed some repeated recalculation of effectively constant values (boe.actions) * removed recalculation of effectively constant scrollbar and button positions (boe.graphics) Closes #251
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
#include <stdexcept>
|
||||
|
||||
OpenBoESceneditMenu::OpenBoESceneditMenu(sf::RenderWindow& window)
|
||||
: tgui { window }
|
||||
, mainPtr { window } {
|
||||
|
||||
: tgui { window } {
|
||||
// Build a menubar and store it in tgui with a known name
|
||||
this->tgui.add(this->build_menubar(), this->internal_menubar_widget_name);
|
||||
}
|
||||
@@ -17,7 +15,7 @@ tgui::MenuBar::Ptr OpenBoESceneditMenu::build_menubar() const {
|
||||
auto menubar = tgui::MenuBar::create();
|
||||
|
||||
// XXX can we get this constant magic number from somewhere?
|
||||
menubar->setSize(this->mainPtr.getSize().x, 20);
|
||||
menubar->setSize("100%", 20);
|
||||
|
||||
this->add_menu_placeholders(menubar);
|
||||
this->add_persistent_menu_items(menubar);
|
||||
|
Reference in New Issue
Block a user