Skip to content

Commit

Permalink
- Fixing some warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
demogorgon1 committed Feb 2, 2023
1 parent 8cb7ed7 commit f39a336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#endif

#include <fcntl.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
4 changes: 2 additions & 2 deletions src/SDLWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ namespace graphtail
if(f < 0.0f)
{
const Config::Color& c = m_config->m_histogramColors[0];
return SDL_Color{ (uint8_t)c.m_r, (uint8_t)c.m_g, (uint8_t)c.m_b };
return SDL_Color{ (uint8_t)c.m_r, (uint8_t)c.m_g, (uint8_t)c.m_b, 255 };
}

float i = (float)(m_config->m_histogramColors.size() - 1) * f;
Expand All @@ -548,7 +548,7 @@ namespace graphtail
if(i1 >= m_config->m_histogramColors.size())
{
const Config::Color& c = m_config->m_histogramColors[m_config->m_histogramColors.size() - 1];
return SDL_Color{ (uint8_t)c.m_r, (uint8_t)c.m_g, (uint8_t)c.m_b };
return SDL_Color{ (uint8_t)c.m_r, (uint8_t)c.m_g, (uint8_t)c.m_b, 255 };
}

const Config::Color& c0 = m_config->m_histogramColors[i0];
Expand Down

0 comments on commit f39a336

Please sign in to comment.