Mercurial > mplayer.hg
changeset 618:b105a9f2bbe7
some cleanup
author | szabii |
---|---|
date | Tue, 24 Apr 2001 12:23:08 +0000 |
parents | 33b559940fb4 |
children | 99a716d8cac8 |
files | libvo/vo_fbdev.c |
diffstat | 1 files changed, 12 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_fbdev.c Tue Apr 24 12:21:42 2001 +0000 +++ b/libvo/vo_fbdev.c Tue Apr 24 12:23:08 2001 +0000 @@ -785,10 +785,16 @@ printf(FBDEV "Can't put VSCREENINFO: %s\n", strerror(errno)); return 1; } + if (ioctl(fb_dev_fd, FBIOGET_FSCREENINFO, &fb_finfo)) { + printf(FBDEV "Can't get FSCREENINFO: %s\n", strerror(errno)); + return 1; + } +#if 0 if (ioctl(fb_dev_fd, FBIOGET_VSCREENINFO, &fb_vinfo)) { printf(FBDEV "Can't get VSCREENINFO: %s\n", strerror(errno)); return 1; } +#endif if (verbose > 0) { printf(FBDEV "var info:\n"); @@ -833,33 +839,24 @@ printf(FBDEV "sync: %u\n", fb_vinfo.sync); printf(FBDEV "vmode: %u\n", fb_vinfo.vmode); } - } - if (ioctl(fb_dev_fd, FBIOGET_FSCREENINFO, &fb_finfo)) { - printf(FBDEV "Can't get FSCREENINFO: %s\n", strerror(errno)); - return 1; - } - if (verbose > 0) { printf(FBDEV "fix info:\n"); - if (verbose > 1) { - printf(FBDEV "id: %.16s\n", fb_finfo.id); - printf(FBDEV "smem_start: %p\n", (void *) fb_finfo.smem_start); - } printf(FBDEV "framebuffer size: %d bytes\n", fb_finfo.smem_len); printf(FBDEV "type: %lu\n", (unsigned long) fb_finfo.type); printf(FBDEV "type_aux: %lu\n", (unsigned long) fb_finfo.type_aux); printf(FBDEV "visual: %lu\n", (unsigned long) fb_finfo.visual); + printf(FBDEV "line_length: %lu bytes\n", (unsigned long) fb_finfo.line_length); if (verbose > 1) { + printf(FBDEV "id: %.16s\n", fb_finfo.id); + printf(FBDEV "smem_start: %p\n", (void *) fb_finfo.smem_start); printf(FBDEV "xpanstep: %u\n", fb_finfo.xpanstep); printf(FBDEV "ypanstep: %u\n", fb_finfo.ypanstep); printf(FBDEV "ywrapstep: %u\n", fb_finfo.ywrapstep); - } - printf(FBDEV "line_length: %lu bytes\n", (unsigned long) fb_finfo.line_length); - if (verbose > 1) { printf(FBDEV "mmio_start: %p\n", (void *) fb_finfo.mmio_start); printf(FBDEV "mmio_len: %u bytes\n", fb_finfo.mmio_len); printf(FBDEV "accel: %u\n", fb_finfo.accel); } } + switch (fb_finfo.type) { case FB_TYPE_VGA_PLANES: printf(FBDEV "FB_TYPE_VGA_PLANES not supported.\n"); @@ -884,6 +881,7 @@ printf(FBDEV "unknown FB_TYPE: %d\n", fb_finfo.type); return 1; } + switch (fb_finfo.visual) { case FB_VISUAL_TRUECOLOR: break; @@ -917,6 +915,7 @@ fb_finfo.visual); return 1; } + if (FS || (d_width && VM)) { out_width = fb_vinfo.xres; out_height = fb_vinfo.yres;