From da8fecf25e11ea05ad6aaab4f9676c78e4faecdc Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Fri, 18 Aug 2017 21:21:24 -0500 Subject: Added support for SVG --- drivers/png/image_loader_png.cpp | 2 +- drivers/png/image_loader_png.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/png/image_loader_png.cpp b/drivers/png/image_loader_png.cpp index 33d271248c..30ec8cd036 100644 --- a/drivers/png/image_loader_png.cpp +++ b/drivers/png/image_loader_png.cpp @@ -201,7 +201,7 @@ Error ImageLoaderPNG::_load_image(void *rf_up, png_rw_ptr p_func, Ref p_i return OK; } -Error ImageLoaderPNG::load_image(Ref p_image, FileAccess *f, bool p_force_linear) { +Error ImageLoaderPNG::load_image(Ref p_image, FileAccess *f, bool p_force_linear, float p_scale) { Error err = _load_image(f, _read_png_data, p_image); f->close(); diff --git a/drivers/png/image_loader_png.h b/drivers/png/image_loader_png.h index f0a525a9eb..c11e25e1a4 100644 --- a/drivers/png/image_loader_png.h +++ b/drivers/png/image_loader_png.h @@ -43,7 +43,7 @@ class ImageLoaderPNG : public ImageFormatLoader { public: static Error _load_image(void *rf_up, png_rw_ptr p_func, Ref p_image); - virtual Error load_image(Ref p_image, FileAccess *f, bool p_force_linear); + virtual Error load_image(Ref p_image, FileAccess *f, bool p_force_linear, float p_scale); virtual void get_recognized_extensions(List *p_extensions) const; ImageLoaderPNG(); }; -- cgit v1.2.3