* Changes the height of the surface. * @warning This is not a trivial setter! * It will force the surface to be recreated for the new size. * @param height New height in pixels. */
| 904 | * @param height New height in pixels. |
| 905 | */ |
| 906 | void Surface::setHeight(int height) |
| 907 | { |
| 908 | resize(getWidth(), height); |
| 909 | _redraw = true; |
| 910 | } |
| 911 | |
| 912 | } |