diff --git a/.github/workflows/unix_build.yml b/.github/workflows/unix_build.yml index 41f19574..d4b87359 100644 --- a/.github/workflows/unix_build.yml +++ b/.github/workflows/unix_build.yml @@ -44,7 +44,7 @@ jobs: if: matrix.os == 'macos-latest' run: | brew install boost fontconfig freeimage - brew cask install xquartz + brew install --cask xquartz echo "CMAKE_PROGRAM=cmake" >> $GITHUB_ENV - name: Install Common Dependencies for Ubuntu diff --git a/examples/cpu/bubblechart.cpp b/examples/cpu/bubblechart.cpp index 7ee46d55..ff6a9964 100644 --- a/examples/cpu/bubblechart.cpp +++ b/examples/cpu/bubblechart.cpp @@ -60,7 +60,8 @@ int main(void) { std::vector radii(tanData.size()); std::generate(colors.begin(), colors.end(), clr); - std::generate(radii.begin(), radii.end(), rnd); + std::generate(radii.begin(), radii.end(), + [&] { return 20.0f + 60.0f * rnd(); }); std::generate(alphas.begin(), alphas.end(), alp); /* diff --git a/examples/cpu/surface.cpp b/examples/cpu/surface.cpp index 7eca2711..a6e25548 100644 --- a/examples/cpu/surface.cpp +++ b/examples/cpu/surface.cpp @@ -17,12 +17,12 @@ using namespace std; -static const float XMIN = -32.0f; -static const float XMAX = 32.0f; -static const float YMIN = -32.0f; -static const float YMAX = 32.0f; +static const float XMIN = -8.0f; +static const float XMAX = 8.0f; +static const float YMIN = -8.0f; +static const float YMAX = 8.0f; -const float DX = 0.25; +const float DX = 0.5; const size_t XSIZE = (size_t)((XMAX - XMIN) / DX); const size_t YSIZE = (size_t)((YMAX - YMIN) / DX);