| 47 | } |
| 48 | |
| 49 | void Window::SetCloseAnimation(int frames) { |
| 50 | if (frames > 0) { |
| 51 | closing = true; |
| 52 | animation_frames = frames; |
| 53 | animation_count = (height / 2.0); |
| 54 | animation_increment = - animation_count / frames; |
| 55 | } else { |
| 56 | SetVisible(false); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void Window::Draw(Bitmap& dst) { |
| 61 | if (width <= 0 || height <= 0) return; |
no outgoing calls
no test coverage detected