mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
Made data slider not a real slider
This commit is contained in:
@@ -162,7 +162,7 @@ void Widget::tick(double fps) {
|
||||
ImGui::Text(this->fps);
|
||||
|
||||
ImGui::SetNextItemWidth(20.0f * ImGui::GetFontSize());
|
||||
if (ImGui::SliderInt("Day of year", &this->date, 1, 365, "%d", ImGuiSliderFlags_NoInput)) {
|
||||
if (ImGui::DragInt("Day of year", &this->date, 1, 1, 365, "%d")) {
|
||||
this->dateChanged = true;
|
||||
parseDate(this->dateString, this->date);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user