pull/239/head
Peter Repukat 1 year ago
parent 2a8df5fdc3
commit 04653b2fb7

@ -75,8 +75,6 @@ namespace CEFInject
const auto json = nlohmann::json::parse(res->body);
for (const auto& tab : json) {
if (tab["title"].get<std::wstring>().starts_with(tabname)) {
#ifdef _WIN32
INT rc;
WSADATA wsaData;
@ -106,10 +104,10 @@ namespace CEFInject
bool exit = false;
while (ws->getReadyState() != easywsclient::WebSocket::CLOSED) {
ws->poll();
ws->dispatch([&ws, & res, & exit](const std::string & message) {
ws->dispatch([&ws, &res, &exit](const std::string& message) {
res = nlohmann::json::parse(message)["result"]["result"]["value"];
exit = true;
});
exit = true;
});
if (exit) {
ws->close();
return res;
@ -128,6 +126,7 @@ namespace CEFInject
}
}
}
return nullptr;
}
}

@ -15,13 +15,10 @@ limitations under the License.
*/
#include "SteamTarget.h"
#include "..\common\Settings.h"
#include "../common/Settings.h"
#include "steam_sf_keymap.h"
#include <SFML/Window/Keyboard.hpp>
#include <WinReg/WinReg.hpp>
#include <numeric>
#include <regex>
#include <spdlog/spdlog.h>
#ifdef _WIN32

@ -398,7 +398,7 @@ void TargetWindow::createWindow()
overlay_ = std::make_shared<Overlay>(
window_, [this]() { close(); }, toggle_overlay_state_, Settings::window.windowMode);
spdlog::debug("auto screen sCale: {}", dpi/96.f);
spdlog::debug("auto screen Scale: {}", dpi/96.f);
ImGuiIO& io = ImGui::GetIO();
io.FontGlobalScale = dpi / 96.f;
ImGui::SFML::UpdateFontTexture();

Loading…
Cancel
Save