From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 17 Aug 2009 08:30:10 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <8d5e7486d802dd452d2f54d3b2dc1039@quanstro.net> Message-ID: References: <8d5e7486d802dd452d2f54d3b2dc1039@quanstro.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [9fans] vga and vmware Topicbox-Message-UUID: 4cb55cfa-ead5-11e9-9d60-3106f5b1d025 >> /dev/vgactl says 0xe0000000 has 0x3c0000 mapped. Enough for >> 1024x768x4 bytes but not enoug hfor 1280x1024x4 bytes. I >> patched vgavmware.c line 179 to allocate 2*vmrd(vm, Rfbsize) >> instead of vmrd(vm, Rfbsize) and now I'm able to go into 1280x1024x8 [...] > why would 8 bit color require 4 bytes-per-pixel? I don't know. I just know that the libdraw primitives were going off the edge of allocated memory and the ctl file said something about "x8r8g8b8" so I got out the calculator and noticed that if there are 4 bytes per pixel then I would expect 1024x768 to fit and 1280x1024 not to. I plead ignorance on how the plan9 vga system is actually set up. > - erik Tim Newsham http://www.thenewsh.com/~newsham/