OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr37381.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
extern unsigned int __invalid_size_argument_for_IOC;
extern unsigned int __invalid_size_argument_for_IOC;
typedef unsigned int __u32;
typedef unsigned int __u32;
struct video_window
struct video_window
{
{
  __u32 x, y;
  __u32 x, y;
  __u32 width, height;
  __u32 width, height;
};
};
typedef unsigned long XID;
typedef unsigned long XID;
typedef XID Window;
typedef XID Window;
typedef struct _XExtData
typedef struct _XExtData
{
{
  Window root;
  Window root;
}
}
Screen;
Screen;
typedef struct
typedef struct
{
{
  int border_width;
  int border_width;
}
}
XWindowAttributes;
XWindowAttributes;
typedef struct _XDisplay Display;
typedef struct _XDisplay Display;
typedef struct
typedef struct
{
{
  int default_screen;
  int default_screen;
  Screen *screens;
  Screen *screens;
}
}
 *_XPrivDisplay;
 *_XPrivDisplay;
typedef struct
typedef struct
{
{
  int x, y;
  int x, y;
}
}
XSizeHints;
XSizeHints;
typedef struct
typedef struct
{
{
  unsigned short hdisplay;
  unsigned short hdisplay;
  unsigned short vdisplay;
  unsigned short vdisplay;
}
}
XF86VidModeModeInfo;
XF86VidModeModeInfo;
Display *display;
Display *display;
int tfd;
int tfd;
int ccapt;
int ccapt;
int tml;
int tml;
int fswidth = 0;
int fswidth = 0;
int fsheight = 0;
int fsheight = 0;
Window fmwin;
Window fmwin;
XF86VidModeModeInfo **modelines, *fullscreenmode = ((void *) 0);
XF86VidModeModeInfo **modelines, *fullscreenmode = ((void *) 0);
struct video_window vswin;
struct video_window vswin;
DoFullScreen (void)
DoFullScreen (void)
{
{
  int i;
  int i;
  int rx, ry;
  int rx, ry;
  Window junkwin;
  Window junkwin;
  XSizeHints fmsizehints;
  XSizeHints fmsizehints;
  XWindowAttributes fmwinattr;
  XWindowAttributes fmwinattr;
  if (ioctl
  if (ioctl
      (tfd,
      (tfd,
       (((1U) << (((0 + 8) + 8) + 14)) | ((('v')) << (0 + 8)) | (((8)) << 0) |
       (((1U) << (((0 + 8) + 8) + 14)) | ((('v')) << (0 + 8)) | (((8)) << 0) |
        (((((sizeof (int) == sizeof (int[1])
        (((((sizeof (int) == sizeof (int[1])
             && sizeof (int) <
             && sizeof (int) <
             (1 << 14)) ? sizeof (int) : __invalid_size_argument_for_IOC))) <<
             (1 << 14)) ? sizeof (int) : __invalid_size_argument_for_IOC))) <<
         ((0 + 8) + 8))), &ccapt) < 0)
         ((0 + 8) + 8))), &ccapt) < 0)
    {
    {
      perror ("ioctl VIDIOCCAPTURE");
      perror ("ioctl VIDIOCCAPTURE");
    }
    }
  if (!XTranslateCoordinates
  if (!XTranslateCoordinates
      (display, fmwin,
      (display, fmwin,
       ((&((_XPrivDisplay) display)->
       ((&((_XPrivDisplay) display)->
         screens[(((_XPrivDisplay) display)->default_screen)])->root),
         screens[(((_XPrivDisplay) display)->default_screen)])->root),
       -fmwinattr.border_width, -fmwinattr.border_width, &rx, &ry, &junkwin))
       -fmwinattr.border_width, -fmwinattr.border_width, &rx, &ry, &junkwin))
    {
    {
    }
    }
  vswin.width = fswidth;
  vswin.width = fswidth;
  vswin.height = fsheight;
  vswin.height = fsheight;
  vswin.x = fmsizehints.x + rx;
  vswin.x = fmsizehints.x + rx;
  vswin.y = fmsizehints.y + ry;
  vswin.y = fmsizehints.y + ry;
  if (ioctl
  if (ioctl
      (tfd,
      (tfd,
       (((1U) << (((0 + 8) + 8) + 14)) | ((('v')) << (0 + 8)) | (((8)) << 0) |
       (((1U) << (((0 + 8) + 8) + 14)) | ((('v')) << (0 + 8)) | (((8)) << 0) |
        (((((sizeof (int) == sizeof (int[1])
        (((((sizeof (int) == sizeof (int[1])
             && sizeof (int) <
             && sizeof (int) <
             (1 << 14)) ? sizeof (int) : __invalid_size_argument_for_IOC))) <<
             (1 << 14)) ? sizeof (int) : __invalid_size_argument_for_IOC))) <<
         ((0 + 8) + 8))), &ccapt) < 0)
         ((0 + 8) + 8))), &ccapt) < 0)
    {
    {
      XF86VidModeGetAllModeLines (display, XDefaultScreen (display), &tml,
      XF86VidModeGetAllModeLines (display, XDefaultScreen (display), &tml,
                                  &modelines);
                                  &modelines);
        {
        {
          if ((modelines[i]->hdisplay == fswidth)
          if ((modelines[i]->hdisplay == fswidth)
              && (modelines[i]->vdisplay == fsheight))
              && (modelines[i]->vdisplay == fsheight))
            {
            {
              fullscreenmode = modelines[i];
              fullscreenmode = modelines[i];
            }
            }
        }
        }
        {
        {
          XF86VidModeSetViewPort (display, XDefaultScreen (display), vswin.x,
          XF86VidModeSetViewPort (display, XDefaultScreen (display), vswin.x,
                                  vswin.y);
                                  vswin.y);
        }
        }
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.