mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-16 19:05:39 +00:00
dep/reshadefx: Fix float printing regression
This commit is contained in:
parent
8c9a885032
commit
534a82d091
|
@ -9,7 +9,6 @@
|
||||||
#include <cstdio> // snprintf
|
#include <cstdio> // snprintf
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <algorithm> // std::find_if, std::max
|
#include <algorithm> // std::find_if, std::max
|
||||||
#include <iomanip>
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
@ -366,7 +365,7 @@ private:
|
||||||
{
|
{
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
ss.imbue(std::locale::classic());
|
ss.imbue(std::locale::classic());
|
||||||
ss << std::fixed << data.as_float[i];
|
ss << data.as_float[i];
|
||||||
s += ss.str();
|
s += ss.str();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstring> // stricmp
|
#include <cstring> // stricmp
|
||||||
#include <algorithm> // std::find_if, std::max
|
#include <algorithm> // std::find_if, std::max
|
||||||
#include <iomanip>
|
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
@ -345,7 +344,7 @@ private:
|
||||||
{
|
{
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
ss.imbue(std::locale::classic());
|
ss.imbue(std::locale::classic());
|
||||||
ss << std::fixed << data.as_float[i];
|
ss << data.as_float[i];
|
||||||
s += ss.str();
|
s += ss.str();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue