diff --git a/src/api/include/projectM-4/parameters.h b/src/api/include/projectM-4/parameters.h index c462444fc..f956c4ab4 100644 --- a/src/api/include/projectM-4/parameters.h +++ b/src/api/include/projectM-4/parameters.h @@ -159,7 +159,8 @@ PROJECTM_EXPORT double projectm_get_preset_duration(projectm_handle instance); /** * @brief Sets the per-pixel equation mesh size in units. - * @note This will currently remove any active presets and reload the default "idle" preset. + * Will internally be clamped to [8,300] in each axis. If any dimension is set to an odd value, it will be incremented by 1 + * so only multiples of two are used. * @param instance The projectM instance handle. * @param width The new width of the mesh. * @param height The new height of the mesh. diff --git a/src/libprojectM/ProjectM.cpp b/src/libprojectM/ProjectM.cpp index 178346a9f..31d2d5eb3 100644 --- a/src/libprojectM/ProjectM.cpp +++ b/src/libprojectM/ProjectM.cpp @@ -443,15 +443,6 @@ void ProjectM::SetMeshSize(size_t meshResolutionX, size_t meshResolutionY) // Constrain per-pixel mesh size to sensible limits m_meshX = std::max(static_cast(8), std::min(static_cast(400), m_meshX)); m_meshY = std::max(static_cast(8), std::min(static_cast(400), m_meshY)); - - // Update mesh size in all sorts of classes. - //m_renderer->SetPerPixelMeshSize(m_meshX, m_meshY); - m_presetFactoryManager->initialize(); - - // Unload all presets and reload idle preset - m_activePreset.reset(); - m_transitioningPreset.reset(); - LoadIdlePreset(); } auto ProjectM::PCM() -> libprojectM::Audio::PCM&