diff --git a/doc/helianthus-doc-ru.odt b/doc/helianthus-doc-ru.odt index 9c004d6..7b5dee9 100644 Binary files a/doc/helianthus-doc-ru.odt and b/doc/helianthus-doc-ru.odt differ diff --git a/src/sprite.c b/src/sprite.c index 1a0c93a..1ed72ef 100644 --- a/src/sprite.c +++ b/src/sprite.c @@ -206,10 +206,13 @@ void spriteSetScale(Sprite sprite, double scale) { sprite->scale = scale; } double spriteGetWidth(Sprite sprite) { return sprite->width; } void spriteSetWidth(Sprite sprite, double width) { sprite->width = width > 0 ? width : 0; } - double spriteGetHeight(Sprite sprite) { return sprite->height; } void spriteSetHeight(Sprite sprite, double height) { sprite->height = height > 0 ? height : 0; } +void spriteSetSize(Sprite sprite, double width, double height) { + spriteSetWidth(sprite, width); + spriteSetHeight(sprite, height); +} int spriteGetRotateToDirection(Sprite sprite) { return sprite->rotateToDirection; } void spriteSetRotateToDirection(Sprite sprite, int rotateToDirection) { diff --git a/src/sprite.h b/src/sprite.h index 34f33c7..6c48426 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -47,9 +47,9 @@ void spriteSetScale(Sprite sprite, double scale); double spriteGetWidth(Sprite sprite); void spriteSetWidth(Sprite sprite, double width); - double spriteGetHeight(Sprite sprite); void spriteSetHeight(Sprite sprite, double height); +void spriteSetSize(Sprite sprite, double width, double height); int spriteGetRotateToDirection(Sprite sprite); void spriteSetRotateToDirection(Sprite sprite, int rotateToDirection);