1
0
mirror of synced 2024-11-24 15:50:16 +01:00

sys: Various cleanup

This commit is contained in:
WerWolv 2022-09-30 12:49:28 +02:00
parent 4d99c4b59d
commit 663fb88367
3 changed files with 4 additions and 8 deletions

View File

@ -27,8 +27,8 @@ struct ImVec2;
namespace hex {
long double operator""_scaled(long double value);
long double operator""_scaled(unsigned long long value);
float operator""_scaled(long double value);
float operator""_scaled(unsigned long long value);
ImVec2 scaled(const ImVec2 &vector);
template<typename T>

View File

@ -22,11 +22,11 @@
namespace hex {
long double operator""_scaled(long double value) {
float operator""_scaled(long double value) {
return value * ImHexApi::System::getGlobalScale();
}
long double operator""_scaled(unsigned long long value) {
float operator""_scaled(unsigned long long value) {
return value * ImHexApi::System::getGlobalScale();
}

View File

@ -16,7 +16,6 @@
#include <chrono>
#include <random>
#include <regex>
#include <limits>
#include <llvm/Demangle/Demangle.h>
#include <content/helpers/math_evaluator.hpp>
@ -75,7 +74,6 @@ namespace hex::plugin::builtin {
ImGui::TableHeadersRow();
u32 rowCount = 0;
for (u8 i = 0; i < 0x80 / 4; i++) {
ImGui::TableNextRow();
@ -92,8 +90,6 @@ namespace hex::plugin::builtin {
ImGui::TableNextColumn();
ImGui::TextFormatted("{0}", hex::makePrintable(i + 32 * tablePart));
rowCount++;
}
ImGui::EndTable();