From: Brian P. <bri...@tu...> - 2007-07-03 21:26:25
|
Malluru, Puri wrote: > Thanks Brian > I made those changes. I see screen getting cleared followed by some > garbage on screen. I am wondering whether I am returning wrong values > from video driver. > In glutInit(), from a gdb session, I printed the values of FixedInfo and > varInfo. They are below. > > (gdb) print FixedInfo > $1 = {id = '\0' <repeats 15 times>, smem_start = 0, smem_len = 7056000, > type = 0, type_aux = 0, visual = 4, xpanstep = 0, > ypanstep = 0, ywrapstep = 0, line_length = 6720, mmio_start = 0, > mmio_len = 0, accel = 0, reserved = {0, 0, 0}} > (gdb) print VarInfo > $2 = {xres = 1280, yres = 720, xres_virtual = 1280, yres_virtual = 720, > xoffset = 0, yoffset = 0, bits_per_pixel = 32, > grayscale = 0, red = {offset = 16, length = 8, msb_right = 0}, green = > {offset = 8, length = 8, msb_right = 0}, blue = { > offset = 0, length = 8, msb_right = 0}, transp = {offset = 24, > length = 8, msb_right = 0}, nonstd = 0, activate = 0, > height = 0, width = 0, accel_flags = 0, pixclock = 0, left_margin = 0, > right_margin = 0, upper_margin = 0, lower_margin = 0, > hsync_len = 0, vsync_len = 0, sync = 0, vmode = 0, rotate = 0, > reserved = {0, 0, 0, 0, 0}} > (gdb) > > The Frame buffer size is 1680x1050, but I am trying to use it as > 1280x720 type frame buffer. Do you mean you want the monitor to display 1280x720, or do you only want to render into a 1280x720 viewport? -Brian |