| 33 | } |
| 34 | |
| 35 | void Window::SetOpenAnimation(int frames) { |
| 36 | closing = false; |
| 37 | SetVisible(true); |
| 38 | |
| 39 | if (frames > 0) { |
| 40 | animation_frames = frames; |
| 41 | animation_count = 0.0; |
| 42 | animation_increment = (height / 2.0) / frames; |
| 43 | } |
| 44 | else { |
| 45 | animation_frames = 0; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | void Window::SetCloseAnimation(int frames) { |
| 50 | if (frames > 0) { |
no outgoing calls
no test coverage detected