forked from townforge/townforge
fix mac build
This commit is contained in:
parent
f8128c7100
commit
72094c7c68
@ -1142,7 +1142,9 @@ set(Boost_LIBRARIES boost_regex boost_filesystem boost_chrono boost_program_opti
|
||||
set(Boost_REGEX_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_regex.a)
|
||||
set(Boost_FILESYSTEM_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_filesystem.a)
|
||||
set(Boost_CHRONO_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_chrono.a)
|
||||
if (NOT APPLE)
|
||||
set(Boost_LOCALE_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_locale.a)
|
||||
endif()
|
||||
set(Boost_PROGRAM_OPTIONS_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_program_options.a)
|
||||
set(Boost_SERIALIZATION_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_serialization.a)
|
||||
set(Boost_THREAD_LIBRARY ${Boost_LIBRARY_DIRS}/libboost_thread.a)
|
||||
|
@ -74,7 +74,7 @@ std::string UIBookmarkVistaDialog::GetPicture() const
|
||||
// DXT1 compression wants 4 byte per pixel, we might get 3 or 4
|
||||
SharedPtr<Image> rgba = screenshot.ConvertToRGBA();
|
||||
|
||||
std::shared_ptr<uint8_t[]> resized(new uint8_t[w * h * 4]);
|
||||
boost::shared_ptr<uint8_t[]> resized(new uint8_t[w * h * 4]);
|
||||
avir::CLancIR().resizeImage(rgba->GetData(), rgba->GetWidth(), rgba->GetHeight(), 0, resized.get(), w, h, 0, 4);
|
||||
|
||||
std::string s;
|
||||
|
Loading…
Reference in New Issue
Block a user