libvita2d icon indicating copy to clipboard operation
libvita2d copied to clipboard

Add vita2d_draw_texture_resize(..., float width, float height)

Open devnoname120 opened this issue 8 years ago • 1 comments

The only way to stretch an image is with vita2d_draw_texture_scale().

This is not practical if I want to fit an image to a box because it takes proportions rather than resulting dimensions.

Here is a function that would solve this issue:

void vita2d_draw_texture_resize(const vita2d_texture *texture, float x, float y, float width, float height)

I might try to make a pull request if I can find some time later.

devnoname120 avatar Mar 11 '17 00:03 devnoname120

I must admit that I use the scale function and it is not too practical to resize an image a function like this would be no denial :)

BenMitnicK avatar May 02 '17 16:05 BenMitnicK