comparison libvo/vo_fbdev.c @ 503:4aa16f9ff929

fbdev reset fixed
author szabii
date Wed, 18 Apr 2001 10:59:12 +0000
parents 6e8a887c99cd
children 5e8d5422854d
comparison
equal deleted inserted replaced
502:75c689abb763 503:4aa16f9ff929
1110 if (fb_cmap_changed) { 1110 if (fb_cmap_changed) {
1111 if (ioctl(fb_dev_fd, FBIOPUTCMAP, &fb_oldcmap)) 1111 if (ioctl(fb_dev_fd, FBIOPUTCMAP, &fb_oldcmap))
1112 printf(FBDEV "Can't restore original cmap\n"); 1112 printf(FBDEV "Can't restore original cmap\n");
1113 fb_cmap_changed = 0; 1113 fb_cmap_changed = 0;
1114 } 1114 }
1115 // memset(next_frame, '\0', in_height * in_width * fb_pixel_size);
1116 // put_frame();
1117 free(next_frame);
1118 if (ioctl(fb_dev_fd, FBIOGET_VSCREENINFO, &fb_vinfo))
1119 printf(FBDEV "ioctl FBIOGET_VSCREENINFO: %s\n", strerror(errno));
1120 fb_orig_vinfo.xoffset = fb_vinfo.xoffset;
1121 fb_orig_vinfo.yoffset = fb_vinfo.yoffset;
1115 if (ioctl(fb_dev_fd, FBIOPUT_VSCREENINFO, &fb_orig_vinfo)) 1122 if (ioctl(fb_dev_fd, FBIOPUT_VSCREENINFO, &fb_orig_vinfo))
1116 printf(FBDEV "Can't set virtual screensize to original value: %s\n", strerror(errno)); 1123 printf(FBDEV "Can't reset original fb_var_screeninfo: %s\n", strerror(errno));
1117 close(fb_dev_fd); 1124 close(fb_dev_fd);
1118 memset(next_frame, '\0', in_height * in_width * fb_pixel_size);
1119 put_frame();
1120 free(next_frame);
1121 munmap(frame_buffer, fb_size); 1125 munmap(frame_buffer, fb_size);
1122 } 1126 }