Update hdr.cpp

Fix typo
This commit is contained in:
Fabien Péan 2017-02-02 23:09:38 +01:00 committed by GitHub
parent 47f2464685
commit bb9d2c1312

View file

@ -1023,7 +1023,7 @@ public:
reBuildCommandBuffers();
}
void changeExpoure(float delta)
void changeExposure(float delta)
{
uboParams.exposure += delta;
if (uboParams.exposure < 0.0f) {
@ -1051,11 +1051,11 @@ public:
break;
case KEY_KPADD:
case GAMEPAD_BUTTON_R1:
changeExpoure(0.05f);
changeExposure(0.05f);
break;
case KEY_KPSUB:
case GAMEPAD_BUTTON_L1:
changeExpoure(-0.05f);
changeExposure(-0.05f);
break;
}
}
@ -1065,9 +1065,9 @@ public:
std::stringstream ss;
ss << std::setprecision(2) << std::fixed << uboParams.exposure;
#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
textOverlay->addText("Expsoure: " + ss.str() + " (+/-)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
textOverlay->addText("Exposure: " + ss.str() + " (+/-)", 5.0f, 85.0f, VulkanTextOverlay::alignLeft);
#endif
}
};