mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Remove fmt::format and replace with std::format
This commit is contained in:
@@ -741,7 +741,7 @@ void TouchInteraction::computeVelocities(const std::vector<TouchInputHolder>& li
|
||||
|
||||
if (pinchConsecCt > 0 && action != InteractionType::PINCH) {
|
||||
if (pinchConsecCt > 3) {
|
||||
LDEBUG(fmt::format(
|
||||
LDEBUG(std::format(
|
||||
"PINCH gesture ended with {} drag distance and {} counts",
|
||||
pinchConsecZoomFactor, pinchConsecCt
|
||||
));
|
||||
@@ -1005,7 +1005,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
|
||||
// Because of heightmaps we need to ensure we don't go through the surface
|
||||
if (_zoomInLimit.value() < nodeRadius) {
|
||||
#ifdef TOUCH_DEBUG_PROPERTIES
|
||||
LINFO(fmt::format(
|
||||
LINFO(std::format(
|
||||
"Zoom In limit should be larger than anchor "
|
||||
"center to surface, setting it to {}", zoomInBounds
|
||||
));
|
||||
@@ -1021,7 +1021,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
|
||||
|
||||
// Make sure zoom in limit is not larger than zoom out limit
|
||||
if (zoomInBounds > zoomOutBounds) {
|
||||
LWARNING(fmt::format(
|
||||
LWARNING(std::format(
|
||||
"Zoom In Limit should be smaller than Zoom Out Limit",
|
||||
zoomOutBounds
|
||||
));
|
||||
@@ -1069,7 +1069,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
|
||||
}
|
||||
else if (currentPosViolatingZoomOutLimit) {
|
||||
#ifdef TOUCH_DEBUG_PROPERTIES
|
||||
LINFO(fmt::format(
|
||||
LINFO(std::format(
|
||||
"You are outside zoom out {} limit, only zoom in allowed",
|
||||
zoomOutBounds
|
||||
));
|
||||
@@ -1112,7 +1112,7 @@ void TouchInteraction::step(double dt, bool directTouch) {
|
||||
//Show velocity status every N frames
|
||||
if (++stepVelUpdate >= 60) {
|
||||
stepVelUpdate = 0;
|
||||
LINFO(fmt::format(
|
||||
LINFO(std::format(
|
||||
"DistToFocusNode {} stepZoomVelUpdate {}",
|
||||
length(centerToCamera), _vel.zoom
|
||||
));
|
||||
|
||||
@@ -254,7 +254,7 @@ Win32TouchHook::Win32TouchHook(void* nativeWindow) {
|
||||
}
|
||||
|
||||
if (!gTouchHook) {
|
||||
LINFO(fmt::format("Failed to setup WindowsHook for touch input redirection"));
|
||||
LINFO(std::format("Failed to setup WindowsHook for touch input redirection"));
|
||||
#ifdef ENABLE_TUIOMESSAGES
|
||||
delete gTuioServer;
|
||||
#endif
|
||||
|
||||
@@ -95,7 +95,7 @@ TouchModule::TouchModule()
|
||||
FactoryManager::ref().factory<Renderable>();
|
||||
|
||||
if (!fRenderable->hasClass(s)) {
|
||||
LWARNING(fmt::format(
|
||||
LWARNING(std::format(
|
||||
"In property 'DefaultDirectTouchRenderableTypes': '{}' is not a "
|
||||
"registered renderable type. Ignoring", s
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user