Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fb.c: replease 0 with SC_RESOLUTION_640_480

  • Loading branch information...
commit 5e03616ceeaef2b06da86717066358f0a9bb5e67 1 parent 533c99c
Xiangfu Liu authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/fb.c
View
6 src/fb.c
@@ -81,14 +81,14 @@ void fb_unblank()
void fb_render_mode()
{
- if(sysconfig_get_resolution() != 0)
- ioctl(framebuffer_fd, FBIOSETVIDEOMODE, 0);
+ if(sysconfig_get_resolution() != SC_RESOLUTION_640_480)
+ ioctl(framebuffer_fd, FBIOSETVIDEOMODE, SC_RESOLUTION_640_480);
ioctl(framebuffer_fd, FBIOSETBUFFERMODE, FB_TRIPLE_BUFFERED);
}
void fb_gui_mode()
{
- if(sysconfig_get_resolution() != 0)
+ if(sysconfig_get_resolution() != SC_RESOLUTION_640_480)
ioctl(framebuffer_fd, FBIOSETVIDEOMODE, sysconfig_get_resolution());
ioctl(framebuffer_fd, FBIOSETBUFFERMODE, FB_SINGLE_BUFFERED);
blanked = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.