sys: Various cleanup
This commit is contained in:
parent
4d99c4b59d
commit
663fb88367
@ -27,8 +27,8 @@ struct ImVec2;
|
|||||||
|
|
||||||
namespace hex {
|
namespace hex {
|
||||||
|
|
||||||
long double operator""_scaled(long double value);
|
float operator""_scaled(long double value);
|
||||||
long double operator""_scaled(unsigned long long value);
|
float operator""_scaled(unsigned long long value);
|
||||||
ImVec2 scaled(const ImVec2 &vector);
|
ImVec2 scaled(const ImVec2 &vector);
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
namespace hex {
|
namespace hex {
|
||||||
|
|
||||||
long double operator""_scaled(long double value) {
|
float operator""_scaled(long double value) {
|
||||||
return value * ImHexApi::System::getGlobalScale();
|
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();
|
return value * ImHexApi::System::getGlobalScale();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#include <llvm/Demangle/Demangle.h>
|
#include <llvm/Demangle/Demangle.h>
|
||||||
#include <content/helpers/math_evaluator.hpp>
|
#include <content/helpers/math_evaluator.hpp>
|
||||||
@ -75,7 +74,6 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
|
|
||||||
u32 rowCount = 0;
|
|
||||||
for (u8 i = 0; i < 0x80 / 4; i++) {
|
for (u8 i = 0; i < 0x80 / 4; i++) {
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
|
|
||||||
@ -92,8 +90,6 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
ImGui::TableNextColumn();
|
ImGui::TableNextColumn();
|
||||||
ImGui::TextFormatted("{0}", hex::makePrintable(i + 32 * tablePart));
|
ImGui::TextFormatted("{0}", hex::makePrintable(i + 32 * tablePart));
|
||||||
|
|
||||||
rowCount++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user