From 70237dc67552afea152dc2933ebc4f93cc97e0cc Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Thu, 28 Feb 2013 21:31:48 +0000 Subject: Add 2 second pre-dim and bugfix blank timer 2 second predim code courtesy of bigbiff Change-Id: I052ac422f78dc82c05f58c188587534b800b935a --- minuitwrp/graphics.c | 3 ++- minuitwrp/minui.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'minuitwrp') diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index dc79db881..61a98c3f7 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -685,13 +685,14 @@ gr_pixel *gr_fb_data(void) return (unsigned short *) gr_mem_surface.data; } -void gr_fb_blank(int blank) +int gr_fb_blank(int blank) { int ret; ret = ioctl(gr_fb_fd, FBIOBLANK, blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK); if (ret < 0) perror("ioctl(): blank"); + return ret; } int gr_get_surface(gr_surface* surface) diff --git a/minuitwrp/minui.h b/minuitwrp/minui.h index d66807cbb..03e15bb81 100644 --- a/minuitwrp/minui.h +++ b/minuitwrp/minui.h @@ -27,7 +27,7 @@ int gr_fb_width(void); int gr_fb_height(void); gr_pixel *gr_fb_data(void); void gr_flip(void); -void gr_fb_blank(int blank); +int gr_fb_blank(int blank); void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a); void gr_fill(int x, int y, int w, int h); -- cgit v1.2.3