Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int animation_acceleration_write_proc(struct file *file, const char *buffer,
- unsigned long count, void *data)
- {
- char proto;
- if (count < 1)
- return -EINVAL;
- if (copy_from_user(&proto, buffer, 1))
- return -EFAULT;
- if (proto == '0') {
- if (g_animation_acceleration) {
- gpinfo->lcd.vsync_enable = save_vsync_enable;
- gpinfo->lcd.hw_vsync_mode = save_hw_vsync_mode;
- g_animation_acceleration = 0;
- }
- } else {
- if (!g_animation_acceleration) {
- save_vsync_enable = gpinfo->lcd.vsync_enable;
- save_hw_vsync_mode = gpinfo->lcd.hw_vsync_mode;
- gpinfo->lcd.vsync_enable = FALSE;
- gpinfo->lcd.hw_vsync_mode = FALSE;
- g_animation_acceleration = 1;
- }
- }
- return count;
- }
- #endif
Add Comment
Please, Sign In to add comment