D3D11: Implement basic screen rotation (90 degree is the only one fully implemented)

This commit is contained in:
Henrik Rydgard authored and Henrik Rydgård committed 2017-03-23 10:02:28 +01:00
1 parent c02060594d
commit 4a98bd904e
6 files changed
+95 -61

No files matched your search

+1 -4
View File
@@ -13,7 +13,6 @@ using namespace Windows::Storage::Streams;
std::mutex initMutex;
StorageFileLoader::StorageFileLoader(Windows::Storage::StorageFile ^file) {
initMutex.lock();
file_ = file;
path_ = FromPlatformString(file_->Path);
thread_.reset(new std::thread([this]() { this->threadfunc(); }));
@@ -61,13 +60,11 @@ void StorageFileLoader::threadfunc() {
}
catch (Platform::COMException ^e) {
std::string what = FromPlatformString(e->ToString());
ILOG("%s", what);
ILOG("%s", what.c_str());
}
initMutex.unlock();
initMutex.unlock();
std::unique_lock<std::mutex> lock(mutex_);
while (active_) {
if (!operationRequested_) {