Bug fixes. (#367)

- Do not draw more frames than what is needed.
- Fix MenuEntry transform state.
- Fix Canvas animated example.
This commit is contained in:
Arthur Sonzogni
2022-03-26 07:55:52 +01:00
committed by GitHub
parent 548fa51b71
commit 62fb6298be
4 changed files with 58 additions and 57 deletions

View File

@@ -167,7 +167,7 @@ int main(int argc, const char* argv[]) {
for (int x = 0; x < size; x++) {
float dx = x - mx;
float dy = y - my;
ys[y][x] = (int)(-1.5 + 3.0 * std::exp(-0.2f * (dx * dx + dy * dy)));
ys[y][x] = -1.5 + 3.0 * std::exp(-0.2f * (dx * dx + dy * dy));
}
}
for (int y = 0; y < size; y++) {