Merge pull request #278 from FabienPean/patch-1
Update hdr.cpp - fix typo
This commit is contained in:
commit
d9c6c95170
1 changed files with 6 additions and 6 deletions
10
hdr/hdr.cpp
10
hdr/hdr.cpp
|
|
@ -1023,7 +1023,7 @@ public:
|
||||||
reBuildCommandBuffers();
|
reBuildCommandBuffers();
|
||||||
}
|
}
|
||||||
|
|
||||||
void changeExpoure(float delta)
|
void changeExposure(float delta)
|
||||||
{
|
{
|
||||||
uboParams.exposure += delta;
|
uboParams.exposure += delta;
|
||||||
if (uboParams.exposure < 0.0f) {
|
if (uboParams.exposure < 0.0f) {
|
||||||
|
|
@ -1051,11 +1051,11 @@ public:
|
||||||
break;
|
break;
|
||||||
case KEY_KPADD:
|
case KEY_KPADD:
|
||||||
case GAMEPAD_BUTTON_R1:
|
case GAMEPAD_BUTTON_R1:
|
||||||
changeExpoure(0.05f);
|
changeExposure(0.05f);
|
||||||
break;
|
break;
|
||||||
case KEY_KPSUB:
|
case KEY_KPSUB:
|
||||||
case GAMEPAD_BUTTON_L1:
|
case GAMEPAD_BUTTON_L1:
|
||||||
changeExpoure(-0.05f);
|
changeExposure(-0.05f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1065,9 +1065,9 @@ public:
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << std::setprecision(2) << std::fixed << uboParams.exposure;
|
ss << std::setprecision(2) << std::fixed << uboParams.exposure;
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
textOverlay->addText("Expsoure: " + ss.str() + " (L1/R1)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
|
textOverlay->addText("Exposure: " + ss.str() + " (L1/R1)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
|
||||||
#else
|
#else
|
||||||
textOverlay->addText("Expsoure: " + ss.str() + " (+/-)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
|
textOverlay->addText("Exposure: " + ss.str() + " (+/-)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue