From 63e414fc8a7ec04a0710a05ac9ce610fbb15f1e5 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 6 Feb 2015 15:44:39 -0600 Subject: Scale the GUI to fit the screen With this patch set, if needed, we scale the images during early boot. TTF support is needed to properly scale the font. No font scaling is done on the old style fixed width font used in the console. Special thanks to _that for figuring out the scaling and blending function calls to make this possible. Change-Id: If2f79bef16d6db2e1298bfc3d00c9bcca2bee37a --- minuitwrp/minui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'minuitwrp/minui.h') diff --git a/minuitwrp/minui.h b/minuitwrp/minui.h index 3aa486511..fff7ddb97 100644 --- a/minuitwrp/minui.h +++ b/minuitwrp/minui.h @@ -67,6 +67,7 @@ unsigned int gr_get_height(gr_surface surface); int gr_get_surface(gr_surface* surface); int gr_free_surface(gr_surface surface); +// Functions in graphics_utils.c int gr_save_screenshot(const char *dest); // input event structure, include for the definition. @@ -83,6 +84,7 @@ int ev_has_mouse(void); // Returns 0 if no error, else negative. int res_create_surface(const char* name, gr_surface* pSurface); void res_free_surface(gr_surface surface); +int res_scale_surface(gr_surface source, gr_surface* destination, float scale_w, float scale_h); // Needed for AOSP: int ev_wait(int timeout); -- cgit v1.2.3