diff --git a/src/boe.main.cpp b/src/boe.main.cpp index b3ee75c4..b562de24 100644 --- a/src/boe.main.cpp +++ b/src/boe.main.cpp @@ -3,7 +3,7 @@ #include "boe.global.hpp" #include "universe.hpp" -#include +#include #include "boe.graphics.hpp" #include "boe.newgraph.hpp" #include "boe.fileio.hpp" @@ -332,19 +332,19 @@ void Mouse_Pressed() { location mousePos(event.mouseButton.x, event.mouseButton.y); volatile bool doneScrolling = false; if(mousePos.in(text_sbar->getBounds())) { - std::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling), REFRESH_TRANS)); + boost::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling), REFRESH_TRANS)); text_sbar->handleClick(mousePos); doneScrolling = true; updater.join(); redraw_screen(REFRESH_TRANS); } else if(mousePos.in(item_sbar->getBounds())) { - std::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling), REFRESH_INVEN)); + boost::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling), REFRESH_INVEN)); item_sbar->handleClick(mousePos); doneScrolling = true; updater.join(); redraw_screen(REFRESH_INVEN); } else if(overall_mode == MODE_SHOPPING && mousePos.in(shop_sbar->getBounds())) { - std::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling), REFRESH_DLOG)); + boost::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling), REFRESH_DLOG)); shop_sbar->handleClick(mousePos); doneScrolling = true; updater.join(); diff --git a/src/scenedit/scen.main.cpp b/src/scenedit/scen.main.cpp index 3c06d3dc..45ae14db 100644 --- a/src/scenedit/scen.main.cpp +++ b/src/scenedit/scen.main.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include "scen.global.hpp" #include "scenario.hpp" @@ -531,13 +531,13 @@ void Mouse_Pressed() { location mousePos(event.mouseButton.x, event.mouseButton.y); volatile bool doneScrolling = false; if(right_sbar->isVisible() && mousePos.in(right_sbar->getBounds())) { - std::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling))); + boost::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling))); right_sbar->handleClick(mousePos); doneScrolling = true; updater.join(); redraw_screen(/*REFRESH_RIGHT_BAR*/); } else if(pal_sbar->isVisible() && mousePos.in(pal_sbar->getBounds())) { - std::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling))); + boost::thread updater(std::bind(handleUpdateWhileScrolling, std::ref(doneScrolling))); pal_sbar->handleClick(mousePos); doneScrolling = true; updater.join();