Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
epezent committed Oct 23, 2021
1 parent a845678 commit d34204b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ ImPlotStyle::ImPlotStyle() {

AntiAliasedLines = false;
#ifdef IMPLOT_BACKEND_ENABLED
UseGpuAacceleration = true;
UseGpuAcceleration = true;
#else
UseGpuAacceleration = false;
UseGpuAcceleration = false;
#endif
}

Expand Down Expand Up @@ -4665,7 +4665,7 @@ void ShowStyleEditor(ImPlotStyle* ref) {
ImGui::Indent(ImGui::CalcItemWidth() - ImGui::GetFrameHeight());
ImGui::Checkbox("AntiAliasedLines", &style.AntiAliasedLines);
#ifdef IMPLOT_BACKEND_ENABLED
ImGui::Checkbox("UseGpuAacceleration", &style.UseGpuAacceleration);
ImGui::Checkbox("UseGpuAcceleration", &style.UseGpuAcceleration);
#endif
ImGui::Unindent(indent);
ImGui::Text("Plot Styling");
Expand Down
2 changes: 1 addition & 1 deletion implot.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ struct ImPlotStyle {
bool UseISO8601; // = false, dates will be formatted according to ISO 8601 where applicable (e.g. YYYY-MM-DD, YYYY-MM, --MM-DD, etc.)
bool Use24HourClock; // = false, times will be formatted using a 24 hour clock
bool AntiAliasedLines; // = false, enable global anti-aliasing on plot lines (overrides ImPlotFlags_AntiAliased)
bool UseGpuAacceleration; // = true*, GPU acceleration will be enabled where your backend supports it (*only true if a backend is enabled, false otherwise)
bool UseGpuAcceleration; // = true*, GPU acceleration will be enabled where your backend supports it (*only true if a backend is enabled, false otherwise)
IMPLOT_API ImPlotStyle();
};

Expand Down
1 change: 1 addition & 0 deletions implot_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ void ShowDemo_Config() {
ImPlot::ShowInputMapSelector("Input Map");
ImGui::Separator();
ImGui::Checkbox("Anti-Aliased Lines", &ImPlot::GetStyle().AntiAliasedLines);
ImGui::Checkbox("Use GPU Acceleration", &ImPlot::GetStyle().UseGpuAcceleration);
ImGui::Checkbox("Use Local Time", &ImPlot::GetStyle().UseLocalTime);
ImGui::Checkbox("Use ISO 8601", &ImPlot::GetStyle().UseISO8601);
ImGui::Checkbox("Use 24 Hour Clock", &ImPlot::GetStyle().Use24HourClock);
Expand Down
2 changes: 1 addition & 1 deletion implot_items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ void RenderHeatmap(Transformer transformer, ImDrawList& DrawList, const T* value
const double yref = reverse_y ? bounds_max.y : bounds_min.y;
const double ydir = reverse_y ? -1 : 1;
#ifdef IMPLOT_BACKEND_HAS_HEATMAP
if (GImPlot->Style.UseGpuAacceleration) {
if (GImPlot->Style.UseGpuAcceleration) {
ImVec2 bmin = transformer(bounds_min);
ImVec2 bmax = transformer(bounds_max);

Expand Down

0 comments on commit d34204b

Please sign in to comment.