To: djgpp AT delorie DOT com Subject: Re: Allegro Vesa mode graphics Message-ID: <19970125.193413.4975.1.chambersb@juno.com> References: <32e9265d DOT 3993736 AT news DOT primenet DOT com> From: chambersb AT juno DOT com (Benjamin D Chambers) Date: Sat, 25 Jan 1997 22:33:36 EST On 25 Jan 1997 14:22:03 -0700 libolt AT goodnet DOT com (Mike McLean) writes: >I am having trouble doing graphics in Vesa graphics modes. I am >trying to display in 640x480 colors, what I display to the screen >displays, yet it also displays garbage over it. > >this is what I use to set the mode, should i change something? > >set_gfx_mode(GFX_VESA2B, 640, 480, 0, 0); > > You should set it so that you can check the return value, ie int i=set_gfx_mode(GFX_VESA2B, 640, 480, 0 0); Then check i to see if there was an error. ...Chambers