Don't reset presets after changing the mesh size.

The warp mesh is now always resized/recalculated dynamically when a frame is drawn, nothing needs to be reloaded anymore.
This commit is contained in:
Kai Blaschke
2023-10-14 13:52:35 +02:00
parent f7b503efc4
commit ceca33a088
2 changed files with 2 additions and 10 deletions

View File

@ -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.