* Changes the width of the surface. * @warning This is not a trivial setter! * It will force the surface to be recreated for the new size. * @param width New width in pixels. */
| 892 | * @param width New width in pixels. |
| 893 | */ |
| 894 | void Surface::setWidth(int width) |
| 895 | { |
| 896 | resize(width, getHeight()); |
| 897 | _redraw = true; |
| 898 | } |
| 899 | |
| 900 | /** |
| 901 | * Changes the height of the surface. |